2011-04-19 20:37:42 +00:00
|
|
|
CFLAGS=-I../include -DDEBUG -g -O0 -Wall
|
2011-04-20 15:15:03 +00:00
|
|
|
LDFLAGS=-L../src
|
2011-04-25 12:20:13 +00:00
|
|
|
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
|
|
|
|
2011-04-25 22:10:02 +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:
|
2011-04-19 07:21:00 +00:00
|
|
|
rm -f $(TARGETS)
|
2011-04-22 09:50:13 +00:00
|
|
|
|
|
|
|
it: all
|