summaryrefslogtreecommitdiff
path: root/run-test-suite.sh
diff options
context:
space:
mode:
authorPéter Diviánszky <divipp@gmail.com>2015-12-19 15:15:42 +0100
committerPéter Diviánszky <divipp@gmail.com>2015-12-19 15:15:42 +0100
commit0fceae00351621f81dc5e5a9a76997765e0c2394 (patch)
tree3c79e9164c91852365b4929a67ec38584fa51a55 /run-test-suite.sh
parent54ad6ad562dcc78da03929dccc21fc9e4307b004 (diff)
switch to new compiler
Diffstat (limited to 'run-test-suite.sh')
-rwxr-xr-xrun-test-suite.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/run-test-suite.sh b/run-test-suite.sh
new file mode 100755
index 00000000..9ced8e55
--- /dev/null
+++ b/run-test-suite.sh
@@ -0,0 +1,20 @@
1#!/bin/bash
2
3if [ "$1" == "--profile" ] ; then
4 shift
5 cabal clean
6 cabal sandbox delete
7 cabal sandbox init
8 cabal install --only-dependencies --enable-library-profiling --enable-executable-profiling
9 cabal configure --flags "profiling" --enable-library-profiling --enable-executable-profiling
10 cabal build
11 cabal run lambdacube-compiler-test-suite -- $@ +RTS -p
12 ./create-test-report.sh
13 rm lambdacube-compiler-test-suite.tix
14 cabal sandbox delete
15 cabal clean
16else
17 cabal run lambdacube-compiler-test-suite -- $@
18 ./create-test-report.sh
19 rm lambdacube-compiler-test-suite.tix
20fi