X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=tests%2Fxpath%2Ftest_correction.sh;fp=tests%2Fxpath%2Ftest_correction.sh;h=7801b632e9a75f79fb142c0561e590ac405dbd12;hp=0000000000000000000000000000000000000000;hb=3fadb034bfc0075d420bdd1383214014500501b8;hpb=c5fc33c2eda7c2bb45c3bafbe74827f17e215fb8 diff --git a/tests/xpath/test_correction.sh b/tests/xpath/test_correction.sh new file mode 100644 index 0000000..7801b63 --- /dev/null +++ b/tests/xpath/test_correction.sh @@ -0,0 +1,37 @@ +#!/bin/sh + + +PROG="$1" +BASEDIR="$2" +SUMMARY="" + +output () +{ + echo "$1" + if [ -f "$SUMMARY" ] + then + echo "$1" >> "$SUMMARY" + fi +} + +for xml in "$BASEDIR"/*.xml +do + QUERIES="$xml".queries + RESULTS="$xml".results + if [ -f "$QUERIES" -a -d "$RESULTS" ] + then + SUMMARY="$xml".summary + rm -f "$SUMMARY" + touch "$SUMMARY" + output "-- Testing file ${xml} -----------------" + + cat "$QUERIES" | grep -v '^#' | while read QNAME QUERY + do + + done + + + fi + + +done