on master help sign in
Turn on optimisation, bump up the test count for coverage.
1688bacBryan O'Sullivan
tests/Makefile+3−3
@@ -1,7 +1,7 @@
1version := $(shell awk '/^version:/{print $$2}' ../text.cabal)
1version := $(shell awk '/^version:/{print $$2}' ../text.cabal)
2ghc := ghc
2ghc := ghc
3−ghc-base-flags := -O0 -package bytestring -package QuickCheck \
3+ghc-base-flags := -O -funbox-strict-fields -package bytestring \
4− -ignore-package text
4+ -package QuickCheck -ignore-package text
5ghc-flags := $(ghc-base-flags) -i../dist/build -package-name text-$(version)
5ghc-flags := $(ghc-base-flags) -i../dist/build -package-name text-$(version)
6ghc-hpc-flags := $(ghc-base-flags) -fhpc -fno-ignore-asserts -odir hpcdir \
6ghc-hpc-flags := $(ghc-base-flags) -fhpc -fno-ignore-asserts -odir hpcdir \
7 -hidir hpcdir -i..
7 -hidir hpcdir -i..
@@ -32,7 +32,7 @@ qc-hpc: Properties.hs QuickCheckUtils.hs $(lib-srcs:%=../%)
32coverage: qc-hpc-html/hpc_index.html
32coverage: qc-hpc-html/hpc_index.html
33
33
34qc-hpc-html/hpc_index.html: qc-hpc
34qc-hpc-html/hpc_index.html: qc-hpc
35− ./qc-hpc
35+ ./qc-hpc 500
36 hpc markup qc-hpc --exclude=Main --exclude=Properties \
36 hpc markup qc-hpc --exclude=Main --exclude=Properties \
37 --exclude=QuickCheckUtils --srcdir=.. --srcdir=. --destdir=$(dir $@)
37 --exclude=QuickCheckUtils --srcdir=.. --srcdir=. --destdir=$(dir $@)
38
38