libpsyc/test/Makefile

31 lines
785 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-*; do echo ">> $$f"; cat $$f | nc localhost $(PORT) | diff -u $$f -; done
nettesterr:
for f in packets/error-*; do echo ">> $$f"; cat $$f | nc localhost $(PORT); done
2011-04-27 17:18:17 +00:00
nettestp1:
(for f in packets/part-1-p*; do cat $$f; done) | nc localhost $(PORT) | diff -u packets/full-1 -
2011-04-27 17:18:17 +00:00
nettestp2:
(for f in packets/part-1-length-p*; do cat $$f; done) | nc localhost $(PORT) | diff -u packets/full-1-length -
2011-04-17 19:46:00 +00:00
clean:
rm -f $(TARGETS)
2011-04-22 09:50:13 +00:00
it: all