Rework the test script.
authorKim Nguyễn <kn@lri.fr>
Fri, 15 Mar 2013 21:25:55 +0000 (22:25 +0100)
committerKim Nguyễn <kn@lri.fr>
Fri, 15 Mar 2013 22:42:03 +0000 (23:42 +0100)
.gitignore
tools/gen_test_results.sh

index b2e50f4..c365247 100644 (file)
@@ -1,8 +1,8 @@
 _build
 *.native
 *.byte
-tests/*.results/*
+tests/*.results/*_tatoo*
 *.class
 tests/trace/*.html
 tests/trace/*.dot
-tests/trace/*.svg
\ No newline at end of file
+tests/trace/*.svg
index 0710e81..c837618 100755 (executable)
@@ -13,17 +13,18 @@ do
             for p in $PROGS
             do
                 echo "$p":
-                cat "$doc".results/"$qname"_"$p".log | grep --color=never time
+                cat "$doc".results/"$qname"_"$p".log | grep --color=never 'INFO\|time'
                 N="$N_$p"
                 D="$D $doc".results/"$qname"_"$p".xml
             done
 
             echo -n "Diff ... "
-            ./xml_diff.native $D > "$doc".results/"$qname""$N".diff 2>&1
+            DIFFILE="$doc".results/"$qname"_"$N".diff
+            ./xml_diff.native $D > "$DIFFILE" 2>&1
             case "$?" in
                 "0")
                     echo "ok"
-
+                    rm -f "$DIFFILE"
                     ;;
                 *)
                     echo "failed"