- Change the XCQL output to include the nasty and redundant
[cql-java-moved-to-github.git] / test / regression / Makefile
index 5831c9e..73a705e 100644 (file)
@@ -1,23 +1,32 @@
-# $Id: Makefile,v 1.1 2002-11-03 16:53:04 mike Exp $
+# $Id: Makefile,v 1.4 2002-11-20 01:15:15 mike Exp $
+
+XMLCANONICALISER = ./xmlpp.pl
+# Change this to "cat" if you want to check byte-for-byte identicality
+
+test:
+       ./runtests CQLParser $(XMLCANONICALISER)
+
+test-adam: sections/01/01.xcql
+       ./runtests ../../../srw/cql/cqlparse3 $(XMLCANONICALISER)
+
+test-rob: sections/01/01.xcql
+       ./runtests ../../../rob/CQLParser.py $(XMLCANONICALISER)
+
+reference: sections/01/01.xcql
 
 sections/01/01.xcql: sections
        ./mkanswers CQLParser
 # OR   ./mkanswers ../../srw/cql/cqlparse3
 # OR   ./mkanswers ../../rob/CQLParser.py
+# Depending on which parser you want to use as your reference
 
 sections: mktests queries.raw
        rm -rf sections
        ./mktests queries.raw
 
-adam-tests: sections/01/01.xcql
-       ./runtests ../../srw/cql/cqlparse3
-
-rob-tests: sections/01/01.xcql
-       ./runtests ../../rob/CQLParser.py
-
 clean:
-       find sections -name '*.xcql' -print | xargs rm -f
+       @echo "Nothing to do to 'make clean'"
 
-distclean:
+totally-clean:
        rm -rf sections