Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile testsuite with -threaded (#264) #267

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions happy.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ test-suite tests
main-is: test.hs
-- This line is important as it ensures that the local `exe:happy` component declared above is built before the test-suite component is invoked, as well as making sure that `happy` is made available on $PATH and `$happy_datadir` is set accordingly before invoking `test.hs`
build-tools: happy
ghc-options: -threaded

build-depends: base, process
default-language: Haskell98
2 changes: 1 addition & 1 deletion test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import System.Process (system)
import System.Exit (exitWith)

main = do
let jFlag = "-j" ++ show numCapabilities
let jFlag = "-j" ++ show numCapabilities -- to run tests in parallel, run `cabal test --test-options="+RTS -N"`
let cmd = ["make", jFlag, "-k", "-C", "tests", "clean", "all"]
system (intercalate " " cmd) >>= exitWith
Loading