@@ -9,15 +9,23 @@ SCRIPT_DIR=$(dirname $0)
9print_help () {
9print_help () {
10 echo "Usage: $0 "
10 echo "Usage: $0 "
11 echo " [--targets <"target1 target2 ..." | help>]"
11 echo " [--targets <"target1 target2 ..." | help>]"
14 echo " [--cabal-build-options <option>]"
12 echo " [--cabal-build-options <option>]"
13+ echo " [--dev-build]"
15+ echo " [--hpc-report-options <option>]"
16+ echo " [--no-measure]"
18+ echo " [--rtsopts <option>]"
15 echo " -- <hspec options or test names>"
19 echo " -- <hspec options or test names>"
17 echo "--targets: targets to run, use 'help' for list of targets"
21 echo "--targets: targets to run, use 'help' for list of targets"
18− echo "--slow: take longer but run more tests"
19− echo "--quick: faster but run fewer tests"
20 echo "--cabal-build-options: Pass any cabal build options to be used for build"
22 echo "--cabal-build-options: Pass any cabal build options to be used for build"
23+ echo "--dev-build: runs some additional tests"
24+ echo "--coverage: enable coverage and report coverage info"
25+ echo "--hpc-report-options: option for 'hpc report'"
26+ echo "--no-measure: with --coverage, do not run tests, only show coverage info"
27+ echo "--raw: with --coverage, do not run hpc"
28+ echo "--rtsopts: pass GHC RTS options to the test executable"
22 echo "Any arguments after a '--' are passed directly to hspec"
30 echo "Any arguments after a '--' are passed directly to hspec"
@@ -49,8 +57,8 @@ do
49 --rtsopts) shift; RTS_OPTIONS=$1; shift ;;
57 --rtsopts) shift; RTS_OPTIONS=$1; shift ;;
51 --raw) RAW=1; shift ;;
59 --raw) RAW=1; shift ;;
52− --slow) SLOW=1; shift ;;
60+ #--slow) SLOW=1; shift ;; # not implemented
53− --quick) QUICK_MODE=1; shift ;;
61+ #--quick) QUICK_MODE=1; shift ;; # not implemented
54 --dev-build) RUNNING_DEVBUILD=1; shift ;;
62 --dev-build) RUNNING_DEVBUILD=1; shift ;;
55 --coverage) COVERAGE=1; shift ;;
63 --coverage) COVERAGE=1; shift ;;
56 --no-measure) MEASURE=0; shift ;;
64 --no-measure) MEASURE=0; shift ;;