summaryrefslogtreecommitdiff
path: root/run-test-suite.sh
diff options
context:
space:
mode:
authorAndor Penzes <andor.penzes@gmail.com>2016-01-06 16:33:12 +0100
committerAndor Penzes <andor.penzes@gmail.com>2016-01-06 16:59:09 +0100
commit6c93d514ef70c67c31f9afc5e9dd0d4de2e7c5b4 (patch)
treeec2e485e40d47af1b7fb647fa72ebc5c9522cd66 /run-test-suite.sh
parent43daac0b697ecff49c34aac22ae497c84cb56be1 (diff)
cabal test suite
Diffstat (limited to 'run-test-suite.sh')
-rwxr-xr-xrun-test-suite.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/run-test-suite.sh b/run-test-suite.sh
index 36f598cb..9cd2cc2a 100755
--- a/run-test-suite.sh
+++ b/run-test-suite.sh
@@ -9,19 +9,23 @@ if [ "$1" == "--profile" ] ; then
9 cabal configure --flags "profiling" --enable-library-profiling --enable-executable-profiling 9 cabal configure --flags "profiling" --enable-library-profiling --enable-executable-profiling
10 cabal build 10 cabal build
11 set +e 11 set +e
12 cabal test --show-details=streaming
13 RESULT_UNITTESTS=`echo $?`
12 cabal run lambdacube-compiler-test-suite -- -r $@ +RTS -p 14 cabal run lambdacube-compiler-test-suite -- -r $@ +RTS -p
13 RESULT=`echo $?` 15 RESULT_TESTS=`echo $?`
14 ./create-test-report.sh 16 ./create-test-report.sh
15 rm lambdacube-compiler-test-suite.tix 17 rm lambdacube-compiler-test-suite.tix
16 cabal sandbox delete 18 cabal sandbox delete
17 cabal clean 19 cabal clean
18 exit $RESULT 20 exit $((RESULT_TESTS + RESULT_UNITTESTS))
19else 21else
20 set +e 22 set +e
21 cabal install --only-dependencies -j1 23 cabal install --only-dependencies -j1
24 cabal test --show-details=streaming
25 RESULT_UNITTESTS=`echo $?`
22 cabal run lambdacube-compiler-test-suite -- -r $@ 26 cabal run lambdacube-compiler-test-suite -- -r $@
23 RESULT=`echo $?` 27 RESULT_TESTS=`echo $?`
24 ./create-test-report.sh 28 ./create-test-report.sh
25 rm lambdacube-compiler-test-suite.tix 29 rm lambdacube-compiler-test-suite.tix
26 exit $RESULT 30 exit $((RESULT_TESTS + RESULT_UNITTESTS))
27fi 31fi