on master help sign in
Add top-level QuickCheck test support.

The "real" tests remain in tests/tests - this test suite is built without optimization, and simply lets us do a quick pass/fail during automated builds.

commitcd48c4807f02f0462c52e8a5524a80b9ed843b62 authorBryan O'Sullivan <bos@serpentine.com> dateSun 21 Aug 2011, 23:25 (15 years ago) parent4f91a89
1 file changed+25−1
text.cabal+25−1
text.cabal+25−1
@@ -40,7 +40,7 @@ maintainer: Bryan O'Sullivan <bos@serpentine.com>
4040copyright: 2009-2011 Bryan O'Sullivan, 2008-2009 Tom Harper
4141category: Data, Text
4242build-type: Simple
43−cabal-version: >= 1.6
43+cabal-version: >= 1.8
4444extra-source-files:
4545 README.markdown
4646 -- scripts/CaseFolding.txt
@@ -137,6 +137,30 @@ library
137137 cpp-options: -DINTEGER_GMP
138138 build-depends: integer >= 0.1 && < 0.2
139139
140+test-suite tests
141+ type: exitcode-stdio-1.0
142+ hs-source-dirs: . tests/tests/src
143+ main-is: Data/Text/Tests.hs
144+ c-sources: cbits/cbits.c
145+
146+ ghc-options:
147+ -Wall -threaded -O0 -rtsopts
148+
149+ cpp-options:
150+ -DASSERTS -DHAVE_DEEPSEQ
151+
152+ build-depends:
153+ base >= 4 && < 5,
154+ bytestring >= 0.9 && < 0.10,
155+ deepseq >= 1.1 && < 1.2,
156+ directory >= 1.1 && < 1.2,
157+ random >= 1.0 && < 1.1,
158+ QuickCheck >= 2.4 && < 2.5,
159+ HUnit >= 1.2 && < 1.3,
160+ test-framework >= 0.4 && < 0.5,
161+ test-framework-quickcheck2 >= 0.2 && < 0.3,
162+ test-framework-hunit >= 0.2 && < 0.3
163+
140164source-repository head
141165 type: git
142166 location: https://github.com/bos/text