Make the non-regression testing more robust by feeding the output
[SXSI/xpathcomp.git] / tests / non_regression_tests / gen_output.sh
index daacbef..d416a00 100755 (executable)
@@ -12,5 +12,8 @@ do
         opt=""
     fi
     query=$(cat "$i" | cut -f 3 -d ',')
-    ../scripts/xpath.sh $opt "$query" ../docs/"$doc".xml > "$out"
+    rm -f tmp
+    ../scripts/xpath.sh $opt "$query" ../docs/"$doc".xml > tmp
+    ../../main.native -nw tmp '/child::*' "$out"
 done
+rm -f tmp
\ No newline at end of file