Skip to content

Commit 7e57521

Browse files
committed
Explicitly list testTargets
`testTarget` is a space separated list of test-suites. We explicitly list all test suites. This allows us to implement logic in the nixpkgs builder to run test suites in separate passthru.test derivations.
1 parent 89857ea commit 7e57521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cabal2nix/src/Distribution/Nixpkgs/Haskell/FromCabal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ fromPackageDescription haskellResolver nixpkgsResolver missingDeps flags Package
112112
& jailbreak .~ False
113113
& doCheck .~ True
114114
& doBenchmark .~ False
115-
& testTarget .~ mempty
115+
& testTarget .~ unwords (map (unUnqualComponentName . testName) testSuites)
116116
& hyperlinkSource .~ True
117117
& enableSplitObjs .~ True
118118
& enableLibraryProfiling .~ False

0 commit comments

Comments
 (0)