Repository : ssh://darcs.haskell.org//srv/darcs/packages/containers On branch : master
http://hackage.haskell.org/trac/ghc/changeset/36ae5c3432dfd3249555b711d37e097cdfa5078a >--------------------------------------------------------------- commit 36ae5c3432dfd3249555b711d37e097cdfa5078a Author: Johan Tibell <[email protected]> Date: Tue Nov 22 08:02:40 2011 -0800 Split test sections into lazy/strict >--------------------------------------------------------------- containers.cabal | 42 +++++++++++++++++++++++++++++++++--------- 1 files changed, 33 insertions(+), 9 deletions(-) diff --git a/containers.cabal b/containers.cabal index c3f47b8..5d25d7f 100644 --- a/containers.cabal +++ b/containers.cabal @@ -21,9 +21,7 @@ source-repository head flag testing description: Expose internals for testing (required for cabal test) - -flag testing-strict - description: Test the strict API (instead of the lazy API) + default: False Library build-depends: base >= 4.2 && < 5, array, deepseq >= 1.2 && < 1.3 @@ -57,7 +55,21 @@ Library cpp-options: -DTESTING build-depends: QuickCheck -Test-suite map-properties +Test-suite map-lazy-properties + hs-source-dirs: tests + main-is: map-properties.hs + type: exitcode-stdio-1.0 + + build-depends: + base, + containers, + HUnit, + QuickCheck, + test-framework, + test-framework-hunit, + test-framework-quickcheck2 + +Test-suite map-strict-properties hs-source-dirs: tests main-is: map-properties.hs type: exitcode-stdio-1.0 @@ -70,10 +82,23 @@ Test-suite map-properties test-framework, test-framework-hunit, test-framework-quickcheck2 - if flag(testing-strict) - cpp-options: -DSTRICT + cpp-options: -DSTRICT + +Test-suite intmap-lazy-properties + hs-source-dirs: tests + main-is: intmap-properties.hs + type: exitcode-stdio-1.0 + + build-depends: + base, + containers, + HUnit, + QuickCheck, + test-framework, + test-framework-hunit, + test-framework-quickcheck2 -Test-suite intmap-properties +Test-suite intmap-strict-properties hs-source-dirs: tests main-is: intmap-properties.hs type: exitcode-stdio-1.0 @@ -86,5 +111,4 @@ Test-suite intmap-properties test-framework, test-framework-hunit, test-framework-quickcheck2 - if flag(testing-strict) - cpp-options: -DSTRICT + cpp-options: -DSTRICT _______________________________________________ Cvs-libraries mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-libraries
