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

28 lines
629 B
Makefile
Raw Normal View History

2011-04-19 20:37:42 +00:00
CFLAGS=-I../include -DDEBUG -g -O0 -Wall
LDFLAGS=-L../src
LOADLIBES=-lpsyc -lm
2011-04-27 17:18:17 +00:00
TARGETS=testServer testParser testMatch testRender isRoutingVar
PORT=4440
2011-02-18 13:03:45 +00:00
2011-04-17 19:46:00 +00:00
all: $(TARGETS)
2011-04-25 21:58:07 +00:00
./testRender
./testMatch
./isRoutingVar
2011-02-18 13:03:45 +00:00
test: $(TARGETS)
2011-04-27 17:18:17 +00:00
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:
2011-04-28 13:20:07 +00:00
(for f in packets/part-1-p*; do cat $$f; done) | nc localhost $(PORT)
2011-04-27 17:18:17 +00:00
nettestp2:
2011-04-28 13:20:07 +00:00
(for f in packets/part-1-length-p*; do cat $$f; done) | nc localhost $(PORT)
2011-04-17 19:46:00 +00:00
clean:
rm -f $(TARGETS)
2011-04-22 09:50:13 +00:00
it: all