[commit: packages/bytestring] 0.10.4.x, master: Allow tests to use multiple cores (37b3017)

git at git.haskell.org git at git.haskell.org
Fri Jan 23 22:42:22 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/37b30175dae3355a5a1362d1ef58d40c18f911aa

>---------------------------------------------------------------

commit 37b30175dae3355a5a1362d1ef58d40c18f911aa
Author: Bryan O'Sullivan <bos at serpentine.com>
Date:   Fri Jun 6 13:25:36 2014 -0700

    Allow tests to use multiple cores


>---------------------------------------------------------------

37b30175dae3355a5a1362d1ef58d40c18f911aa
 bytestring.cabal             | 3 ++-
 tests/bytestring-tests.cabal | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/bytestring.cabal b/bytestring.cabal
index 4f524b5..d27ca48 100644
--- a/bytestring.cabal
+++ b/bytestring.cabal
@@ -158,6 +158,7 @@ test-suite prop-compiled
   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)
@@ -182,7 +183,7 @@ test-suite test-builder
                     directory,
                     mtl                        >= 2.0 && < 2.2
 
-  ghc-options:      -Wall -fwarn-tabs
+  ghc-options:      -Wall -fwarn-tabs -threaded -rtsopts
 
   default-language: Haskell98
   -- older ghc had issues with language pragmas guarded by cpp
diff --git a/tests/bytestring-tests.cabal b/tests/bytestring-tests.cabal
index efece04..bddadde 100644
--- a/tests/bytestring-tests.cabal
+++ b/tests/bytestring-tests.cabal
@@ -33,6 +33,7 @@ executable prop-compiled
   cpp-options:      -DHAVE_TEST_FRAMEWORK=1
   ghc-options:      -fwarn-unused-binds
                     -fno-enable-rewrite-rules
+                    -threaded -rtsopts
   extensions:       BangPatterns
                     UnliftedFFITypes,
                     MagicHash,
@@ -61,7 +62,7 @@ executable test-builder
                     test-framework-quickcheck2  >= 0.3
 
   cpp-options:      -DHAVE_TEST_FRAMEWORK=1
-  ghc-options:      -Wall -fwarn-tabs -fhpc
+  ghc-options:      -Wall -fwarn-tabs -fhpc -threaded -rtsopts
 
   extensions:       CPP, ForeignFunctionInterface
                     UnliftedFFITypes,



More information about the ghc-commits mailing list