Rework the testing script.
[tatoo.git] / tools / gen_test.sh
diff --git a/tools/gen_test.sh b/tools/gen_test.sh
deleted file mode 100755 (executable)
index 1c9ce12..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-
-usage() {
-    echo "error: missing input, query file"
-    echo "usage: $0 file.xml"
-}
-
-FILE="$1"
-RESULTS="$FILE".results
-QUERIES="$FILE".queries
-
-if test ! -f "$FILE" -o ! -f "$QUERIES"
-then
-   usage;
-   exit 1
-fi
-
-
-mkdir -p "$RESULTS"
-
-cat "$QUERIES" | grep -v '^#' | while read qname q
-do
-    echo "Computing $q"
-    java -cp _build/tools XPathEval "$FILE" "$q" > "$RESULTS"/"$qname".xml 2> "$RESULTS"/"$qname".log
-done