diff options
author | Péter Diviánszky <divipp@gmail.com> | 2015-12-19 15:15:42 +0100 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2015-12-19 15:15:42 +0100 |
commit | 0fceae00351621f81dc5e5a9a76997765e0c2394 (patch) | |
tree | 3c79e9164c91852365b4929a67ec38584fa51a55 /run-test-suite.sh | |
parent | 54ad6ad562dcc78da03929dccc21fc9e4307b004 (diff) |
switch to new compiler
Diffstat (limited to 'run-test-suite.sh')
-rwxr-xr-x | run-test-suite.sh | 20 |
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 | |||
3 | if [ "$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 | ||
16 | else | ||
17 | cabal run lambdacube-compiler-test-suite -- $@ | ||
18 | ./create-test-report.sh | ||
19 | rm lambdacube-compiler-test-suite.tix | ||
20 | fi | ||