1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00

packets: rename, new packets

This commit is contained in:
Gabor Adam Toth 2011-05-04 17:44:12 +02:00
parent 4394aa5e0c
commit c0a6ba7530
41 changed files with 35 additions and 44 deletions

View file

@ -23,8 +23,8 @@ test: ${TARGETS}
./testText ./testText
./isRoutingVar ./isRoutingVar
./getVarType ./getVarType
for f in packets/full-*; do echo ">> $$f"; ./testParser $$f; done for f in packets/[0-9]*; do echo ">> $$f"; ./testParser $$f; done
for f in packets/full-*; do echo ">> $$f"; ./testParser $$f -r; done for f in packets/[0-9]*; do echo ">> $$f"; ./testParser $$f -r; done
testServer: CFLAGS := $(subst -std=c99,,${CFLAGS}) testServer: CFLAGS := $(subst -std=c99,,${CFLAGS})
@ -41,19 +41,13 @@ netstartrv:
./testServer ${PORT} -rv ./testServer ${PORT} -rv
nettest: nettest:
for f in packets/full-*; do echo ">> $$f"; cat $$f | nc localhost ${PORT} | diff -u $$f -; done for f in packets/[0-9]*; do echo ">> $$f"; cat $$f | nc localhost ${PORT} | diff -u $$f -; done
nettesterr: nettesterr:
for f in packets/error-*; do echo ">> $$f"; cat $$f | nc localhost ${PORT}; done for f in packets/err-*; do echo ">> $$f"; cat $$f | nc localhost ${PORT}; done
splittest: splittest:
for f in packets/full-*; do echo ">> $$f"; ./splittest.pl $$f ${PORT} | diff -u $$f -; done for f in packets/[0-9]*; do echo ">> $$f"; ./splittest.pl $$f ${PORT} | diff -u $$f -; done
nettestp1:
(for f in packets/part-1-p*; do cat $$f; done) | nc localhost ${PORT} | diff -u packets/full-1 -
nettestp2:
(for f in packets/part-1-length-p*; do cat $$f; done) | nc localhost ${PORT} | diff -u packets/full-1-length -
clean: clean:
rm -f ${TARGETS} rm -f ${TARGETS}

View file

@ -0,0 +1,4 @@
:_source psyc://foo.example.com/
:_target psyc://bar.example.com/
0
|

View file

@ -0,0 +1,5 @@
:_source psyc://foo.example.com/
:_target psyc://bar.example.com/
16
_notice_foo_bar
|

View file

@ -0,0 +1,3 @@
_notice_foo_bar
|

View file

@ -0,0 +1,3 @@
:_source psyc://foo.example.com/
:_target psyc://bar.example.com/
|

5
test/packets/00-no-data Normal file
View file

@ -0,0 +1,5 @@
:_source psyc://foo.example.com/
:_target psyc://bar.example.com/
_notice_foo_bar
|

View file

@ -0,0 +1,6 @@
:_source psyc://foo.example.com/
:_target psyc://bar.example.com/
_message_private
OHAI
|

View file

@ -0,0 +1,4 @@
:_foo bar
_notice_foo_bar
|

View file

@ -1,3 +0,0 @@
:_source psyc://nb.tgbit.net/
:_target psyc://nb.tgbit.net/
|

View file

@ -1 +0,0 @@
part-1-p1

View file

@ -1 +0,0 @@
part-1-p2

View file

@ -1,3 +0,0 @@
hu3r2cm
85
:_foo bar baz

View file

@ -1 +0,0 @@
part-1-p4

View file

@ -1 +0,0 @@
part-1-p5

View file

@ -1 +0,0 @@
part-1-p6

View file

@ -1 +0,0 @@
part-1-p7

View file

@ -1 +0,0 @@
part-1-p8

View file

@ -1 +0,0 @@
part-1-p9

View file

@ -1,2 +0,0 @@
:_source psyc://foo/~bar
:_tar

View file

@ -1,2 +0,0 @@
get psyc://bar/~baz
:_tag sch1828

View file

@ -1,3 +0,0 @@
hu3r2cm
:_foo bar baz

View file

@ -1,2 +0,0 @@
:_abc_def 1

View file

@ -1 +0,0 @@
1 foo

View file

@ -1,4 +0,0 @@
bar
baz
:_foo_bar yay
_message

View file

@ -1,2 +0,0 @@
_foo_bar
ohai

View file

@ -1,2 +0,0 @@
there!
\o/

View file

@ -1 +0,0 @@
|