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

40 lines
971 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-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
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:
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:
(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