mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
test server
This commit is contained in:
parent
9b5a3718c7
commit
96bc48c64c
3 changed files with 270 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
|||
CFLAGS=-I../include -DDEBUG -g -O0 -Wall
|
||||
LDFLAGS=-L../src
|
||||
LOADLIBES=-lpsyc -lm
|
||||
TARGETS=testParser testMatch testRender isRoutingVar
|
||||
TARGETS=testServer testParser testMatch testRender isRoutingVar
|
||||
PORT=4440
|
||||
|
||||
all: $(TARGETS)
|
||||
./testRender
|
||||
|
@ -9,7 +10,16 @@ all: $(TARGETS)
|
|||
./isRoutingVar
|
||||
|
||||
test: $(TARGETS)
|
||||
for f in packets/*; do echo ">> $$f"; ./testParser $$f; done
|
||||
for f in packets/full-* packets/error-*; do echo ">> $$f"; ./testParser $$f; done
|
||||
|
||||
nettest:
|
||||
for f in packets/full-* packets/error-*; do echo ">> $$f"; cat $$f | nc localhost $(PORT); done
|
||||
|
||||
nettestp1:
|
||||
(for f in packets/part-1-p*; do cat $$f; done) | nc nb $(PORT)
|
||||
|
||||
nettestp2:
|
||||
(for f in packets/part-1-length-p*; do cat $$f; done) | nc nb $(PORT)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGETS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue