summaryrefslogtreecommitdiff
path: root/quickcheck/run.sh
blob: cff728abee84bef0aa8d23b2690f019690dc6b5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

# I suck at bash scripting. Please feel free to make this code better.

Root=../compiler

ExtraOptions="-cpp -fglasgow-exts -package ghc"

HC=$Root/stage2/ghc-inplace

Debug="False"

if [ "$1" == "debug" ]
  then
    Debug="True"
fi

if [ "$1" == "ghci" ]
  then
    $HC --interactive $ExtraOptions $2
  else
    $HC --interactive -e "runUnitTests $Debug" $ExtraOptions RunTests.hs
fi