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-29 20:58:19 +00:00
|
|
|
TARGETS=testServer testParser testMatch testRender isRoutingVar getVarType
|
2011-04-27 17:18:17 +00:00
|
|
|
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
|
|
|
|
|
2011-04-29 02:12:55 +00:00
|
|
|
netstart:
|
|
|
|
./testServer $(PORT)
|
|
|
|
|
|
|
|
netstartv:
|
|
|
|
./testServer $(PORT) -v
|
|
|
|
|
2011-04-27 17:18:17 +00:00
|
|
|
nettest:
|
2011-04-29 01:20:00 +00:00
|
|
|
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
|
|
|
|
2011-04-29 14:03:17 +00:00
|
|
|
splittest:
|
|
|
|
for f in packets/full-*; do echo ">> $$f"; ./splittest.pl $$f $(PORT) | diff -u $$f -; done
|
|
|
|
|
2011-04-27 17:18:17 +00:00
|
|
|
nettestp1:
|
2011-04-29 01:20:00 +00:00
|
|
|
(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:
|
2011-04-29 01:20:00 +00:00
|
|
|
(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:
|
2011-04-19 07:21:00 +00:00
|
|
|
rm -f $(TARGETS)
|
2011-04-22 09:50:13 +00:00
|
|
|
|
|
|
|
it: all
|