[commit: packages/bytestring] 0.10.4.x, master: Add regressions to test suite (d61dffb)
git at git.haskell.org
git at git.haskell.org
Fri Jan 23 22:42:36 UTC 2015
Repository : ssh://git@git.haskell.org/bytestring
On branches: 0.10.4.x,master
Link : http://git.haskell.org/packages/bytestring.git/commitdiff/d61dffbd19cebd20b7c9cb9a8e50b3bfb1025748
>---------------------------------------------------------------
commit d61dffbd19cebd20b7c9cb9a8e50b3bfb1025748
Author: Bryan O'Sullivan <bos at serpentine.com>
Date: Fri Jun 6 14:43:53 2014 -0700
Add regressions to test suite
>---------------------------------------------------------------
d61dffbd19cebd20b7c9cb9a8e50b3bfb1025748
bytestring.cabal | 20 +++++++++++++++++++-
tests/bytestring-tests.cabal | 19 +++++++++++++++++++
2 files changed, 38 insertions(+), 1 deletion(-)
diff --git a/bytestring.cabal b/bytestring.cabal
index d27ca48..663ee5e 100644
--- a/bytestring.cabal
+++ b/bytestring.cabal
@@ -153,6 +153,7 @@ test-suite prop-compiled
TestFramework
hs-source-dirs: . tests
build-depends: base, ghc-prim, deepseq, random, directory,
+ test-framework, test-framework-quickcheck2,
QuickCheck >= 2.3 && < 2.7
c-sources: cbits/fpstring.c
include-dirs: include
@@ -166,6 +167,24 @@ test-suite prop-compiled
DeriveDataTypeable, BangPatterns,
NamedFieldPuns
+test-suite regressions
+ type: exitcode-stdio-1.0
+ main-is: Regressions.hs
+ hs-source-dirs: . tests
+ build-depends: base, ghc-prim, deepseq, random, directory,
+ test-framework, test-framework-hunit, HUnit,
+ c-sources: cbits/fpstring.c
+ include-dirs: include
+ ghc-options: -fwarn-unused-binds
+ -fno-enable-rewrite-rules
+ -threaded -rtsopts
+ default-language: Haskell98
+ -- older ghc had issues with language pragmas guarded by cpp
+ if impl(ghc < 7)
+ default-extensions: CPP, MagicHash, UnboxedTuples,
+ DeriveDataTypeable, BangPatterns,
+ NamedFieldPuns
+
test-suite test-builder
type: exitcode-stdio-1.0
hs-source-dirs: . tests tests/builder
@@ -197,4 +216,3 @@ test-suite test-builder
include-dirs: include
includes: fpstring.h
install-includes: fpstring.h
-
diff --git a/tests/bytestring-tests.cabal b/tests/bytestring-tests.cabal
index bddadde..d84fc6b 100644
--- a/tests/bytestring-tests.cabal
+++ b/tests/bytestring-tests.cabal
@@ -42,6 +42,25 @@ executable prop-compiled
ScopedTypeVariables
NamedFieldPuns
+executable regressions
+ main-is: Regressions.hs
+ hs-source-dirs: . ..
+ build-depends: base, ghc-prim, deepseq, random, directory,
+ test-framework, test-framework-hunit, HUnit
+ c-sources: ../cbits/fpstring.c
+ include-dirs: ../include
+ cpp-options: -DHAVE_TEST_FRAMEWORK=1
+ ghc-options: -fwarn-unused-binds
+ -fno-enable-rewrite-rules
+ -threaded -rtsopts
+ extensions: BangPatterns
+ UnliftedFFITypes,
+ MagicHash,
+ UnboxedTuples,
+ DeriveDataTypeable
+ ScopedTypeVariables
+ NamedFieldPuns
+
executable test-builder
hs-source-dirs: . .. builder
main-is: TestSuite.hs
More information about the ghc-commits
mailing list