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

testServer: new cmdline options, memory handling fixes, fixes for routing-only mode

This commit is contained in:
tg(x) 2011-05-06 00:15:37 +02:00
parent fd5d886053
commit e22d028c15
2 changed files with 117 additions and 23 deletions

View file

@ -17,6 +17,11 @@ debug: CFLAGS += -DDEBUG=${DEBUG} -g
debug: CFLAGS := $(subst ${OPT},-O0,${CFLAGS})
debug: all
clean:
rm -f ${TARGETS}
it: all
test: ${TARGETS}
./testRender
./testMatch
@ -26,7 +31,16 @@ test: ${TARGETS}
for f in packets/[0-9]*; do echo ">> $$f"; ./testParser $$f; done
for f in packets/[0-9]*; do echo ">> $$f"; ./testParser $$f -r; done
testServer: CFLAGS := $(subst -std=c99,,${CFLAGS})
nettest: nettestfull nettestsplit
nettestfull:
for f in packets/[0-9]*; do echo ">> $$f"; cat $$f | nc localhost ${PORT} | diff -u $$f -; done
nettestsplit:
for f in packets/[0-9]*; do echo ">> $$f"; ./splittest.pl $$f ${PORT} | diff -u $$f -; done
nettesterr:
for f in packets/err-*; do echo ">> $$f"; cat $$f | nc localhost ${PORT}; done
netstart:
./testServer ${PORT}
@ -40,18 +54,20 @@ netstartv:
netstartrv:
./testServer ${PORT} -rv
nettest: nettestfull nettestsplit
netstartm:
./testServer ${PORT} -m
nettestfull:
for f in packets/[0-9]*; do echo ">> $$f"; cat $$f | nc localhost ${PORT} | diff -u $$f -; done
netstartmr:
./testServer ${PORT} -mr
nettestsplit:
for f in packets/[0-9]*; do echo ">> $$f"; ./splittest.pl $$f ${PORT} | diff -u $$f -; done
netstartms:
./testServer ${PORT} -ms
nettesterr:
for f in packets/err-*; do echo ">> $$f"; cat $$f | nc localhost ${PORT}; done
netstartmsp:
./testServer ${PORT} -msp
clean:
rm -f ${TARGETS}
netstartmv:
./testServer ${PORT} -mv
it: all
netstartmrv:
./testServer ${PORT} -mrv