summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Campbell2018-10-12 18:14:41 +0100
committerBrian Campbell2018-10-12 18:14:41 +0100
commita9b18e2be154c6e2429b156ae9390ffad89a7c2a (patch)
treea290d509a8da97027f7e032503a5b20435b36444
parentf63571c9a6b532f64b415de27bb0ee6cc358388d (diff)
Prevent accidental test failures when Coq compiles in the wrong order
-rwxr-xr-xtest/coq/run_tests.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/coq/run_tests.sh b/test/coq/run_tests.sh
index 5a723a06..db73580f 100755
--- a/test/coq/run_tests.sh
+++ b/test/coq/run_tests.sh
@@ -56,7 +56,8 @@ function check_tests_dir {
do
if $SAILDIR/sail -coq -dcoq_undef_axioms -o out $TESTSDIR/$i &>/dev/null;
then
- if coqc -R "$BBVDIR" bbv -R "$SAILDIR/lib/coq" Sail out_types.v out.v &>/dev/null;
+ if coqc -R "$BBVDIR" bbv -R "$SAILDIR/lib/coq" Sail out_types.v &>/dev/null &&
+ coqc -R "$BBVDIR" bbv -R "$SAILDIR/lib/coq" Sail out.v &>/dev/null;
then
green "tested $i expecting pass" "pass"
else