Skip to content

Commit

Permalink
🔧 Make test suites threaded
Browse files Browse the repository at this point in the history
  • Loading branch information
lsrcz committed Sep 28, 2023
1 parent 4a36ab9 commit 78daca1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grisette.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ test-suite doctest
Paths_grisette
hs-source-dirs:
doctest
ghc-options: -Wextra -Werror -Wcompat -Widentities -Wincomplete-record-updates -Wmissing-export-lists -Wmissing-home-modules -Wmissing-import-lists -Wpartial-fields -Wunused-type-patterns
ghc-options: -Wextra -Werror -Wcompat -Widentities -Wincomplete-record-updates -Wmissing-export-lists -Wmissing-home-modules -Wmissing-import-lists -Wpartial-fields -Wunused-type-patterns -threaded -rtsopts -with-rtsopts=-N
build-depends:
Glob
, QuickCheck >=2.13.2 && <2.15
Expand Down Expand Up @@ -213,7 +213,7 @@ test-suite spec
Paths_grisette
hs-source-dirs:
test
ghc-options: -Wextra -Werror -Wcompat -Widentities -Wincomplete-record-updates -Wmissing-export-lists -Wmissing-home-modules -Wmissing-import-lists -Wpartial-fields -Wunused-type-patterns
ghc-options: -Wextra -Werror -Wcompat -Widentities -Wincomplete-record-updates -Wmissing-export-lists -Wmissing-home-modules -Wmissing-import-lists -Wpartial-fields -Wunused-type-patterns -threaded -rtsopts -with-rtsopts=-N
build-depends:
HUnit ==1.6.*
, QuickCheck >=2.13.2 && <2.15
Expand Down
8 changes: 8 additions & 0 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,18 @@ tests:
- test-framework-hunit >= 0.3.0.2 && < 0.4
- test-framework-quickcheck2 >= 0.3.0.5 && < 0.4
- HUnit >= 1.6 && < 1.7
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
doctest:
main: Main.hs
source-dirs: doctest
dependencies:
- grisette
- doctest >= 0.18.2 && < 0.22
- Glob
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N

0 comments on commit 78daca1

Please sign in to comment.