Make the program report query execution time and query serialization time.
[tatoo.git] / tools / gen_test.sh
index 111052f..1c9ce12 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 usage() {
-    echo "error: missing input, query file or XPathEval class"
+    echo "error: missing input, query file"
     echo "usage: $0 file.xml"
 }
 
@@ -9,7 +9,7 @@ FILE="$1"
 RESULTS="$FILE".results
 QUERIES="$FILE".queries
 
-if test ! -f "$FILE" -o ! -f "$QUERIES" -o ! -f XPathEval.class
+if test ! -f "$FILE" -o ! -f "$QUERIES"
 then
    usage;
    exit 1
@@ -20,6 +20,6 @@ mkdir -p "$RESULTS"
 
 cat "$QUERIES" | grep -v '^#' | while read qname q
 do
-    echo "Computing $q" 
-    java XPathEval "$FILE" "$q" > "$RESULTS"/"$qname".xml
+    echo "Computing $q"
+    java -cp _build/tools XPathEval "$FILE" "$q" > "$RESULTS"/"$qname".xml 2> "$RESULTS"/"$qname".log
 done