Re-add CQLLexer#main
[cql-java-moved-to-github.git] / test / regression / showtest
1 #!/bin/sh
2
3
4 if [ $# != 1 ]; then
5         echo "Usage: $0 <test-name>" >&2
6         echo "  e.g. $0 01/02" >&2
7         exit 1
8 fi
9
10 ### Warning: nasty hard-coded choices
11 ( echo "=== Adam ==="
12   ../../../srw/cql/cql2xcql < sections/$1.cql ) > /tmp/adam
13 ( echo "=== Mike ==="
14   ../../bin/CQLParser < sections/$1.cql ) > /tmp/mike
15 sdiff -w 80 /tmp/adam /tmp/mike