X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=tools%2Fgen_test.sh;h=b55a70166403ea2157da43997d0dfe38d6a87877;hp=3e5a34ff344622d8493409210d05c4c6308dc4c1;hb=398d3e07fa7a472395fa125f504c11629ec601ad;hpb=20538a1c949f89745b73f89f9d0c146dc42454a2 diff --git a/tools/gen_test.sh b/tools/gen_test.sh index 3e5a34f..b55a701 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 @@ -21,5 +21,5 @@ mkdir -p "$RESULTS" cat "$QUERIES" | grep -v '^#' | while read qname q do echo "Computing $q" - java XPathEval "$FILE" "$q" > "$RESULTS"/"$qname".xml + java -cp _build/tools XPathEval "$FILE" "$q" > "$RESULTS"/"$qname".xml done