X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=tools%2Fgen_test.sh;h=1c9ce1238e98620c1ea945efc5390b7cbfcb4041;hp=111052fff5376c34b242320f4c88d98d271ff786;hb=9522266372edb18327f96b21213b4efc3798ee98;hpb=37e8a9fe5d5f1f430ced3aa65daf572d330d3398 diff --git a/tools/gen_test.sh b/tools/gen_test.sh index 111052f..1c9ce12 100755 --- a/tools/gen_test.sh +++ b/tools/gen_test.sh @@ -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