Skip to content
Browse files

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.
  • Loading branch information...
1 parent 4f91a89 commit cd48c4807f02f0462c52e8a5524a80b9ed843b62 @bos committed Aug 21, 2011
Showing with 25 additions and 1 deletion.
  1. +25 −1 text.cabal
View
26 text.cabal
@@ -40,7 +40,7 @@ maintainer: Bryan O'Sullivan <bos@serpentine.com>
copyright: 2009-2011 Bryan O'Sullivan, 2008-2009 Tom Harper
category: Data, Text
build-type: Simple
-cabal-version: >= 1.6
+cabal-version: >= 1.8
extra-source-files:
README.markdown
-- scripts/CaseFolding.txt
@@ -137,6 +137,30 @@ library
cpp-options: -DINTEGER_GMP
build-depends: integer >= 0.1 && < 0.2
+test-suite tests
+ type: exitcode-stdio-1.0
+ hs-source-dirs: . tests/tests/src
+ main-is: Data/Text/Tests.hs
+ c-sources: cbits/cbits.c
+
+ ghc-options:
+ -Wall -threaded -O0 -rtsopts
+
+ cpp-options:
+ -DASSERTS -DHAVE_DEEPSEQ
+
+ build-depends:
+ base >= 4 && < 5,
+ bytestring >= 0.9 && < 0.10,
+ deepseq >= 1.1 && < 1.2,
+ directory >= 1.1 && < 1.2,
+ random >= 1.0 && < 1.1,
+ QuickCheck >= 2.4 && < 2.5,
+ HUnit >= 1.2 && < 1.3,
+ test-framework >= 0.4 && < 0.5,
+ test-framework-quickcheck2 >= 0.2 && < 0.3,
+ test-framework-hunit >= 0.2 && < 0.3
+
source-repository head
type: git
location: https://github.com/bos/text

0 comments on commit cd48c48

Please sign in to comment.
Something went wrong with that request. Please try again.