X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=tools%2Fgen_test.sh;fp=tools%2Fgen_test.sh;h=0000000000000000000000000000000000000000;hp=1c9ce1238e98620c1ea945efc5390b7cbfcb4041;hb=6733babef61a4e4dc18eca834577b6359f0a1345;hpb=9522266372edb18327f96b21213b4efc3798ee98 diff --git a/tools/gen_test.sh b/tools/gen_test.sh deleted file mode 100755 index 1c9ce12..0000000 --- a/tools/gen_test.sh +++ /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