#
CDEBUG = -g
-YFLAGS = -vlt
-CFLAGS = $(CDEBUG) -D_POSIX_SOURCE -DYYDEBUG=1 -DPARSEDEBUG
+YFLAGS = -l # add -vt for debugging
+CFLAGS = $(CDEBUG) -D_POSIX_SOURCE -DPARSEDEBUG # -DYYDEBUG=1
SOURCES = cupl.[ylh] tokdump.c main.c interpret.c execute.c monitor.c nodetype.h
trap "rm -f testcupl$$; exit 0"
-rm -f *.parse
+rm -f *.test
for x in $TESTLOADS
do
- echo "Making ${x}.parse from ${x}.cupl..."
- ../cupl -v1 ${x}.cupl >${x}.parse 2>&1
+ echo "Making ${x}.test from ${x}.cupl..."
+ ../cupl -v1 ${x}.cupl >${x}.test 2>&1
done
-chmod -w *.parse
+chmod -w *.test
echo "Done"
do
echo "Testing against ${x}.cupl..."
../cupl -v1 ${x}.cupl >testcupl$$
- diff -c ${x}.parse testcupl$$
+ diff -c ${x}.test testcupl$$
done
echo "Done"