1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00
libpsyc/test/Makefile
psyc://psyced.org/~lynX d0d07f7410 +
2011-04-28 15:20:07 +02:00

27 lines
629 B
Makefile

CFLAGS=-I../include -DDEBUG -g -O0 -Wall
LDFLAGS=-L../src
LOADLIBES=-lpsyc -lm
TARGETS=testServer testParser testMatch testRender isRoutingVar
PORT=4440
all: $(TARGETS)
./testRender
./testMatch
./isRoutingVar
test: $(TARGETS)
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 localhost $(PORT)
nettestp2:
(for f in packets/part-1-length-p*; do cat $$f; done) | nc localhost $(PORT)
clean:
rm -f $(TARGETS)
it: all