-# $Id: Makefile,v 1.6 2002-11-20 22:50:45 mike Exp $
+# $Id: Makefile,v 1.7 2002-11-21 09:57:28 mike Exp $
XMLCANONICALISER = cat
# Change this to "./xmlpp.pl" if you want to check for equivalence
test: sections/01/01.cql sections/01/01.xcql
- ./runtests CQLParser $(XMLCANONICALISER)
+ ./runtests ../../bin/CQLParser $(XMLCANONICALISER)
test-adam: sections/01/01.cql sections/01/01.xcql
./runtests ../../../srw/cql/cqlparse3 $(XMLCANONICALISER)
./mktests queries.raw
sections/01/01.xcql: mkanswers
- ./mkanswers CQLParser
-# OR ./mkanswers ../../srw/cql/cqlparse3
-# OR ./mkanswers ../../rob/CQLParser.py
+ ./mkanswers ../../bin/CQLParser
+# OR ./mkanswers ../../../srw/cql/cqlparse3
+# OR ./mkanswers ../../../rob/CQLParser.py
# Depending on which parser you want to use as your reference
clean:
-$Id: README,v 1.4 2002-11-20 22:50:45 mike Exp $
+$Id: README,v 1.5 2002-11-21 09:57:28 mike Exp $
cql-java's regression-testing framework
---------------------------------------
make refclean
./mktests queries.raw
./mkanswers CQLParser.py
- ./runtests CQLParser ./xmlpp.pl
+ ./runtests ../../bin/CQLParser ./xmlpp.pl
The second argument to ./runtests is the name of a program to use to
normalise XML, so that the trusted output and the output being tested
#!/usr/bin/perl -w
-# $Id: mkanswers,v 1.4 2002-11-20 23:10:17 mike Exp $
+# $Id: mkanswers,v 1.5 2002-11-21 09:57:28 mike Exp $
use IO::File;
use strict;
+$ENV{CLASSPATH} .= ":../../lib/cql-java.jar";
+
if (@ARGV != 1) {
print STDERR "Usage: $0 <trusted-CQL-compiler>\n";
exit(1);
#!/usr/bin/perl -w
-# $Id: runtests,v 1.6 2002-11-20 23:10:17 mike Exp $
+# $Id: runtests,v 1.7 2002-11-21 09:57:28 mike Exp $
use IO::File;
use strict;
+$ENV{CLASSPATH} .= ":../../lib/cql-java.jar";
+
if (@ARGV != 2) {
print STDERR "Usage: $0 <CQL-compiler> <XML-normaliser>\n";
exit(1);
}
my $compiler = $ARGV[0];
-my $norman = $ARGV[1];
+my $norman = $ARGV[1]; # name of XML normaliser program
while (<sections/*>) {
my $sdir = $_;