summaryrefslogtreecommitdiff
path: root/src/test.sh
diff options
context:
space:
mode:
authorAlex AUVOLAT <alex.auvolat@ens.fr>2013-12-05 22:52:11 +0100
committerAlex AUVOLAT <alex.auvolat@ens.fr>2013-12-05 22:52:11 +0100
commitcdc464d57821ef3061f485b37c60dee8ee9af021 (patch)
tree361b3f0a171cf9b36ef979b54cd2e1e070b3bcda /src/test.sh
parenta60e8a8eabde116cc3da920b637bc4f6f5b8b17c (diff)
downloadLPC-Projet-cdc464d57821ef3061f485b37c60dee8ee9af021.tar.gz
LPC-Projet-cdc464d57821ef3061f485b37c60dee8ee9af021.zip
Meilleur gestion des erreurs.
Diffstat (limited to 'src/test.sh')
-rwxr-xr-xsrc/test.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test.sh b/src/test.sh
index 603b404..34a6997 100755
--- a/src/test.sh
+++ b/src/test.sh
@@ -34,3 +34,19 @@ for a in ../tests/exec/*.cpp; do
else echo "FAIL $a";
fi;
done;
+
+echo "---"
+echo "Testing TYPING/GOOD for typing"
+for a in ../tests/typing/good/*.cpp; do
+ if ./main.byte $a;
+ then echo "OK $a";
+ else echo "FAIL $a";
+ fi;
+done;
+
+for a in ../tests/typing/bad/*.cpp; do
+ if ./main.byte $a 2> /dev/null;
+ then echo "FAIL $a";
+ else echo "OK $a";
+ fi;
+done;