summaryrefslogtreecommitdiff
path: root/run-test-suite.sh
diff options
context:
space:
mode:
authorAndor Penzes <andor.penzes@gmail.com>2016-01-27 16:11:30 +0100
committerAndor Penzes <andor.penzes@gmail.com>2016-01-27 16:11:46 +0100
commit245abb33e63bda7dc3a6c886840142be11a7c318 (patch)
treede22f52edf960d37fd162d919215c050ba70fc9b /run-test-suite.sh
parentc78d96f057ffeea44ae52b5f740be8047cae3763 (diff)
Run profiling on travis.
Diffstat (limited to 'run-test-suite.sh')
-rwxr-xr-xrun-test-suite.sh13
1 files changed, 2 insertions, 11 deletions
diff --git a/run-test-suite.sh b/run-test-suite.sh
index df1eab0f..f1169049 100755
--- a/run-test-suite.sh
+++ b/run-test-suite.sh
@@ -2,25 +2,16 @@
2 2
3if [ "$1" == "--profile" ] ; then 3if [ "$1" == "--profile" ] ; then
4 shift 4 shift
5 cabal clean 5 cabal install --only-dependencies --enable-library-profiling --enable-executable-profiling
6 cabal sandbox delete
7 cabal sandbox init
8 git clone https://github.com/lambdacube3d/lambdacube-ir /tmp/ir
9 cabal sandbox add-source /tmp/ir/lambdacube-ir.haskell
10 cabal install --only-dependencies --enable-library-profiling --enable-executable-profiling --constraint="indentation -trifecta"
11 cabal configure --flags "profiling onlytestsuite" --enable-library-profiling --enable-executable-profiling 6 cabal configure --flags "profiling onlytestsuite" --enable-library-profiling --enable-executable-profiling
12 cabal build
13 set +e 7 set +e
14 RESULT_UNITTESTS=0 8 RESULT_UNITTESTS=0
15 cabal run lambdacube-compiler-test-suite -- -r $@ +RTS -p 9 cabal run lambdacube-compiler-test-suite -- -r $@ +RTS -p
16 RESULT_TESTS=`echo $?` 10 RESULT_TESTS=`echo $?`
17 cabal sandbox delete
18 cabal clean
19 rm -rf /tmp/ir
20elif [ "$1" == "--coverage" ] ; then 11elif [ "$1" == "--coverage" ] ; then
21 shift 12 shift
22 set +e 13 set +e
23 cabal install --only-dependencies -j1 14 cabal install --only-dependencies
24 cabal configure --flags "coverage" 15 cabal configure --flags "coverage"
25 cabal run lambdacube-compiler-unit-tests 16 cabal run lambdacube-compiler-unit-tests
26 RESULT_UNITTESTS=`echo $?` 17 RESULT_UNITTESTS=`echo $?`