diff options
author | Alex AUVOLAT <alex.auvolat@ens.fr> | 2014-05-14 17:23:57 +0200 |
---|---|---|
committer | Alex AUVOLAT <alex.auvolat@ens.fr> | 2014-05-14 17:23:57 +0200 |
commit | 9714afeb275360110161c870b50627128fda75a0 (patch) | |
tree | ed9e8b8ff1d3881ec1e16943d07c87b1dd739670 /tests/test.sh | |
parent | d4ab85a1a6503cdbcb98c183c3357926d78da8a7 (diff) | |
download | SemVerif-Projet-9714afeb275360110161c870b50627128fda75a0.tar.gz SemVerif-Projet-9714afeb275360110161c870b50627128fda75a0.zip |
Many things work!
Diffstat (limited to 'tests/test.sh')
-rwxr-xr-x | tests/test.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/test.sh b/tests/test.sh new file mode 100755 index 0000000..443868a --- /dev/null +++ b/tests/test.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +echo "== CONSTANT ABSTRACT DOMAIN" +for a in sources/*.c; do + if ../analyze --const-interp $a > /tmp/analyze_out.txt; + then + if diff -B /tmp/analyze_out.txt results/`basename -s .c $a`.constants.txt > /dev/null + then echo "OK $a" + else echo "FAIL $a" + fi + else echo "TODO $a"; + fi; +done; + +echo "== INTERVALS ABSTRACT DOMAIN" +for a in sources/*.c; do + if ../analyze --interv-interp $a > /tmp/analyze_out.txt; + then + if diff -B /tmp/analyze_out.txt results/`basename -s .c $a`.intervals.txt > /dev/null + then echo "OK $a" + else echo "FAIL $a" + fi + else echo "TODO $a"; + fi; +done; + |