summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlasdair Armstrong2017-08-02 17:10:23 +0100
committerAlasdair Armstrong2017-08-02 17:12:05 +0100
commit2ca7b184dbf74322eede5992fb8f83db3ffbdd28 (patch)
tree3f74994e7e3ff2a73eb093ee6c2a8c4b57766412 /test
parente9558fd6dd549e6be4ef10a00113fdeceff51a4c (diff)
Fix run_tests.sh so it cleans up generated ml files when testing ocaml backend
Diffstat (limited to 'test')
-rwxr-xr-xtest/typecheck/run_tests.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/typecheck/run_tests.sh b/test/typecheck/run_tests.sh
index 8659e60e..5cca3a3a 100755
--- a/test/typecheck/run_tests.sh
+++ b/test/typecheck/run_tests.sh
@@ -133,6 +133,8 @@ function test_ocaml {
if $SAILDIR/sail -ocaml $DIR/$1/$i 2> /dev/null
then
green "generated ocaml for $1/$i" "pass"
+
+ rm $SAILDIR/${i%%.*}.ml
else
red "generated ocaml for $1/$i" "fail"
fi