on master help sign in
Split out packages needed for tests.

--HG-- extra : convert_revision : 88d4a8f8f08925ded813f348f4f77c101a3de6e3

commite635b4ac601ad91e079fc80edbaf7db5d9d8dac5 authorBryan O'Sullivan <bos@serpentine.com> dateSun 6 Dec 2009, 06:30 (17 years ago) parent3e973ae
1 file changed+4−2
tests/Makefile+4−2
tests/Makefile+4−2
@@ -2,9 +2,10 @@ version := $(shell awk '/^version:/{print $$2}' ../text.cabal)
22ghc := ghc
33ghc-opt-flags = -O0
44ghc-base-flags := -funbox-strict-fields -package criterion \
5− -package bytestring -package QuickCheck -package test-framework \
6− -package test-framework-quickcheck -ignore-package text \
5+ -package bytestring -ignore-package text \
76 -fno-ignore-asserts
7+ghc-test-flags := -package QuickCheck -package test-framework \
8+ -package test-framework-quickcheck
89ghc-base-flags += -Wall -fno-warn-orphans -fno-warn-missing-signatures
910ghc-flags := $(ghc-base-flags) -i../dist/build -package-name text-$(version)
1011ghc-hpc-flags := $(ghc-base-flags) -fhpc -fno-ignore-asserts -odir hpcdir \
@@ -28,6 +29,7 @@ else
2829 cd .. && cabal build
2930endif
3031
32+Properties.o qc qc-hpc: ghc-flags += $(ghc-test-flags)
3133Properties.o: QuickCheckUtils.o SlowFunctions.o
3234
3335QuickCheckUtils.o: $(lib)