projects
/
tatoo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make the program report query execution time and query serialization time.
[tatoo.git]
/
tools
/
gen_test.sh
diff --git
a/tools/gen_test.sh
b/tools/gen_test.sh
index
111052f
..
1c9ce12
100755
(executable)
--- a/
tools/gen_test.sh
+++ b/
tools/gen_test.sh
@@
-1,7
+1,7
@@
#!/bin/sh
usage() {
#!/bin/sh
usage() {
- echo "error: missing input, query file
or XPathEval class
"
+ echo "error: missing input, query file"
echo "usage: $0 file.xml"
}
echo "usage: $0 file.xml"
}
@@
-9,7
+9,7
@@
FILE="$1"
RESULTS="$FILE".results
QUERIES="$FILE".queries
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
then
usage;
exit 1
@@
-20,6
+20,6
@@
mkdir -p "$RESULTS"
cat "$QUERIES" | grep -v '^#' | while read qname q
do
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
done