Re-add CQLLexer#main
[cql-java-moved-to-github.git] / test / regression / Makefile
1
2 XMLCANONICALISER = cat
3 # Change this to "./xmlpp.pl" if you want to check for equivalence
4
5 test: sections/01/01.cql sections/01/01.xcql
6         ./runtests ../../bin/CQLParser $(XMLCANONICALISER)
7
8 test-adam: sections/01/01.cql sections/01/01.xcql
9         ./runtests ../../../srw/cql/cql2xcql $(XMLCANONICALISER)
10
11 test-rob: sections/01/01.cql sections/01/01.xcql
12         ./runtests ../../../rob/CQLParser.py $(XMLCANONICALISER)
13
14 sections/01/01.cql: mktests queries.raw
15         ./mktests queries.raw
16
17 sections/01/01.xcql: mkanswers
18         ./mkanswers ../../bin/CQLParser
19 # OR    ./mkanswers ../../../srw/cql/cql2xcql
20 # OR    ./mkanswers ../../../rob/CQLParser.py
21 # Depending on which parser you want to use as your reference
22
23 clean:
24         @echo "Nothing to do to 'make clean'"
25
26 distclean:
27         find sections . -name '*.cql' -exec rm \{\} \;
28
29 refclean:
30         find sections . -name '*.xcql' -exec rm \{\} \;