Add tests.
[tatoo.git] / tests / xpath / test_correction.sh
1 #!/bin/sh
2
3
4 PROG="$1"
5 BASEDIR="$2"
6 SUMMARY=""
7
8 output ()
9 {
10     echo "$1"
11     if [ -f "$SUMMARY" ]
12     then
13         echo "$1" >> "$SUMMARY"
14     fi
15 }
16
17 for xml in "$BASEDIR"/*.xml
18 do
19     QUERIES="$xml".queries
20     RESULTS="$xml".results
21     if [ -f "$QUERIES" -a -d "$RESULTS" ]
22     then
23         SUMMARY="$xml".summary
24         rm -f "$SUMMARY"
25         touch "$SUMMARY"
26         output "-- Testing file ${xml} -----------------"
27
28         cat "$QUERIES" | grep -v '^#' | while read QNAME QUERY
29         do
30
31         done
32
33
34     fi
35
36
37 done