summaryrefslogtreecommitdiff
path: root/run-test-suite.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run-test-suite.sh')
-rwxr-xr-xrun-test-suite.sh9
1 files changed, 3 insertions, 6 deletions
diff --git a/run-test-suite.sh b/run-test-suite.sh
index 9764d750..df1eab0f 100755
--- a/run-test-suite.sh
+++ b/run-test-suite.sh
@@ -8,15 +8,12 @@ if [ "$1" == "--profile" ] ; then
8 git clone https://github.com/lambdacube3d/lambdacube-ir /tmp/ir 8 git clone https://github.com/lambdacube3d/lambdacube-ir /tmp/ir
9 cabal sandbox add-source /tmp/ir/lambdacube-ir.haskell 9 cabal sandbox add-source /tmp/ir/lambdacube-ir.haskell
10 cabal install --only-dependencies --enable-library-profiling --enable-executable-profiling --constraint="indentation -trifecta" 10 cabal install --only-dependencies --enable-library-profiling --enable-executable-profiling --constraint="indentation -trifecta"
11 cabal configure --flags "profiling coverage" --enable-library-profiling --enable-executable-profiling 11 cabal configure --flags "profiling onlytestsuite" --enable-library-profiling --enable-executable-profiling
12 cabal build 12 cabal build
13 set +e 13 set +e
14 cabal run lambdacube-compiler-unit-tests 14 RESULT_UNITTESTS=0
15 RESULT_UNITTESTS=`echo $?` 15 cabal run lambdacube-compiler-test-suite -- -r $@ +RTS -p
16 cabal run lambdacube-compiler-coverage-test-suite -- -r $@ +RTS -p
17 RESULT_TESTS=`echo $?` 16 RESULT_TESTS=`echo $?`
18 ./create-test-report.sh
19 rm lambdacube-compiler-coverage-test-suite.tix
20 cabal sandbox delete 17 cabal sandbox delete
21 cabal clean 18 cabal clean
22 rm -rf /tmp/ir 19 rm -rf /tmp/ir