scanner/parser: offizielle test{faelle,skripten} sind da :)
[uebersetzerbau-ss10.git] / parser / 09test.sh
diff --git a/parser/09test.sh b/parser/09test.sh
deleted file mode 100755 (executable)
index ab33935..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/sh
-
-beispiel=parser
-allow_null_glob_expansion=1
-shopt -s nullglob
-PROGRAM=./$beispiel
-errnum=0
-prgnum=0
-
-LOC=~/test/$beispiel/
-
-for i in $LOC/*.[012]
-do
-       echo "---------------------------------------------------------------------"
-       echo "Test file: $i"
-       echo "Input:"
-       echo "======"
-       echo
-       cat $i
-       echo
-       let prgnum=prgnum+1
-       $PROGRAM <$i >/dev/null 2>/dev/null
-       retval=$?
-       if test $retval -eq ${i##*.}
-       then
-               echo "Correct exit status."
-       else
-                echo "[Error] Status is $retval but ${i##*.} was expected!"
-                echo   
-                let errnum=errnum+1   
-       fi
-done
-echo "---------------------------------------------------------------------"
-echo
-let corrnum=prgnum-errnum
-echo "Statistics:"
-echo "==========="
-echo "           $prgnum Tests total"
-echo "           $corrnum Tests passed"
-echo "           $errnum Tests failed"