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:
parent
4394aa5e0c
commit
c0a6ba7530
41 changed files with 35 additions and 44 deletions
|
@ -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}
|
||||||
|
|
4
test/packets/00-length-no-content
Normal file
4
test/packets/00-length-no-content
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
:_source psyc://foo.example.com/
|
||||||
|
:_target psyc://bar.example.com/
|
||||||
|
0
|
||||||
|
|
|
5
test/packets/00-length-no-data
Normal file
5
test/packets/00-length-no-data
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
:_source psyc://foo.example.com/
|
||||||
|
:_target psyc://bar.example.com/
|
||||||
|
16
|
||||||
|
_notice_foo_bar
|
||||||
|
|
|
3
test/packets/00-method-only
Normal file
3
test/packets/00-method-only
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
|
||||||
|
_notice_foo_bar
|
||||||
|
|
|
3
test/packets/00-no-content
Normal file
3
test/packets/00-no-content
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
:_source psyc://foo.example.com/
|
||||||
|
:_target psyc://bar.example.com/
|
||||||
|
|
|
5
test/packets/00-no-data
Normal file
5
test/packets/00-no-data
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
:_source psyc://foo.example.com/
|
||||||
|
:_target psyc://bar.example.com/
|
||||||
|
|
||||||
|
_notice_foo_bar
|
||||||
|
|
|
6
test/packets/00-no-entity
Normal file
6
test/packets/00-no-entity
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
:_source psyc://foo.example.com/
|
||||||
|
:_target psyc://bar.example.com/
|
||||||
|
|
||||||
|
_message_private
|
||||||
|
OHAI
|
||||||
|
|
|
4
test/packets/00-no-routing
Normal file
4
test/packets/00-no-routing
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
|
||||||
|
:_foo bar
|
||||||
|
_notice_foo_bar
|
||||||
|
|
|
|
@ -1,3 +0,0 @@
|
||||||
:_source psyc://nb.tgbit.net/
|
|
||||||
:_target psyc://nb.tgbit.net/
|
|
||||||
|
|
|
|
@ -1 +0,0 @@
|
||||||
part-1-p1
|
|
|
@ -1 +0,0 @@
|
||||||
part-1-p2
|
|
|
@ -1,3 +0,0 @@
|
||||||
hu3r2cm
|
|
||||||
85
|
|
||||||
:_foo bar baz
|
|
|
@ -1 +0,0 @@
|
||||||
part-1-p4
|
|
|
@ -1 +0,0 @@
|
||||||
part-1-p5
|
|
|
@ -1 +0,0 @@
|
||||||
part-1-p6
|
|
|
@ -1 +0,0 @@
|
||||||
part-1-p7
|
|
|
@ -1 +0,0 @@
|
||||||
part-1-p8
|
|
|
@ -1 +0,0 @@
|
||||||
part-1-p9
|
|
|
@ -1,2 +0,0 @@
|
||||||
:_source psyc://foo/~bar
|
|
||||||
:_tar
|
|
|
@ -1,2 +0,0 @@
|
||||||
get psyc://bar/~baz
|
|
||||||
:_tag sch1828
|
|
|
@ -1,3 +0,0 @@
|
||||||
hu3r2cm
|
|
||||||
|
|
||||||
:_foo bar baz
|
|
|
@ -1,2 +0,0 @@
|
||||||
|
|
||||||
:_abc_def 1
|
|
|
@ -1 +0,0 @@
|
||||||
1 foo
|
|
|
@ -1,4 +0,0 @@
|
||||||
bar
|
|
||||||
baz
|
|
||||||
:_foo_bar yay
|
|
||||||
_message
|
|
|
@ -1,2 +0,0 @@
|
||||||
_foo_bar
|
|
||||||
ohai
|
|
|
@ -1,2 +0,0 @@
|
||||||
there!
|
|
||||||
\o/
|
|
|
@ -1 +0,0 @@
|
||||||
|
|
|
Loading…
Reference in a new issue