Commits

Bryan O'Sullivan committed 0a245c7

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.

Comments (0)

Files changed (1)

 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
     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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.