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

'nettest' is broken: it is a bug in the testing suite, not in the library.

This commit is contained in:
psyc://loupsycedyglgamf.onion/~lynX 1984-04-04 00:44:07 +00:00
parent 8191dd44ef
commit 6869cfbf73
2 changed files with 12 additions and 5 deletions

View file

@ -32,7 +32,8 @@ testdebug: debug
${MAKE} -C test debug ${MAKE} -C test debug
test: all test: all
${MAKE} -C test test nettest ${MAKE} -C test test
# nettest currently unavailable. please debug it.
check: test check: test

View file

@ -1,3 +1,7 @@
# 'nettest' is currently broken. testserver is not receiving any of the
# packets that 'nc' is passing to it. this is a bug in the testing suite,
# not in the library. --lynX 2016
export LD_LIBRARY_PATH = ../lib export LD_LIBRARY_PATH = ../lib
OPT = -O2 OPT = -O2
@ -25,6 +29,8 @@ endif
all: ${TARGETS} all: ${TARGETS}
it: all it: all
check: test
test_psyc: LOADLIBES := ${LOADLIBES} ${LOADLIBES_NET} test_psyc: LOADLIBES := ${LOADLIBES} ${LOADLIBES_NET}
test_psyc_speed: LOADLIBES := ${LOADLIBES} ${LOADLIBES_NET} test_psyc_speed: LOADLIBES := ${LOADLIBES} ${LOADLIBES_NET}
#test_psyc_speed: LOADLIBES := ${LOADLIBES_NET} #test_psyc_speed: LOADLIBES := ${LOADLIBES_NET}
@ -66,7 +72,7 @@ test: ${TARGETS}
nettest: nettestfull nettestsplit nettest: nettestfull nettestsplit
nettestrun: srvstart pkt srvkill nettestrun: start pkt stop
nettestfull: nettestfull:
${MAKE} nettestrun; x=$$?; pkill -x test_psyc; exit $$x ${MAKE} nettestrun; x=$$?; pkill -x test_psyc; exit $$x
@ -85,11 +91,11 @@ pktsplit:
pkterr: pkterr:
for f in packets/err-*; do echo ">> $$f"; cat $$f | nc localhost ${PORT}; done for f in packets/err-*; do echo ">> $$f"; cat $$f | nc localhost ${PORT}; done
srvstart: start:
pkill -x test_psyc; exit 0 pkill -x test_psyc; exit 0
./test_psyc -p ${PORT} -S ${srv_args} & ./test_psyc -p ${PORT} -S ${srv_args} -vvv &
srvkill: stop:
pkill -x test_psyc pkill -x test_psyc
bench: bench-genpkts bench-psyc bench-psyc-bin bench-json bench-json-bin bench-xml bench: bench-genpkts bench-psyc bench-psyc-bin bench-json bench-json-bin bench-xml