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

parser fixes & refactoring; added more tests

This commit is contained in:
tg(x) 2011-04-19 09:21:00 +02:00
parent 344f327e19
commit a0ab246127
21 changed files with 479 additions and 406 deletions

View file

@ -1,16 +1,12 @@
CFLAGS=-I../../include -DDEBUG -g -O0
CFLAGS=-I../../include -DDEBUG -g -O0 -Wall
LDFLAGS=-L..
LOADLIBES=-lpsyc
TARGETS=testParser testMatch
all: $(TARGETS)
# special case because not in the same directory
testParser:
${CC} ${CFLAGS} ${LDFLAGS} parser/testParser.c ${LOADLIBES} -o testParser
test:
for f in parser/*txt; do echo -e "\n>> $$f"; ./testParser $$f; done
for f in packets/*; do echo -e "\n>> $$f"; ./testParser $$f; done
clean:
rm $(TARGETS)
rm -f $(TARGETS)