-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Change testTarget -> testTargets #646
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depends on NixOS/nixpkgs#306283
@@ -123,7 +123,7 @@ hooks = | |||
, ("hlibgit2 >= 0.18.0.14", set (testDepends . tool . contains (pkg "git")) True) | |||
, ("hmatrix < 0.18.1.1", set phaseOverrides "preConfigure = \"sed -i hmatrix.cabal -e '/\\\\/usr\\\\//D'\";") | |||
, ("holy-project", set doCheck False) -- attempts to access the network | |||
, ("hoogle", set testTarget "--test-option=--no-net") | |||
, ("hoogle", set testTargets ["--test-option=--no-net"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be testFlags
instead, but I suspect cabal2nix doesn't know about it yet. Maybe something to take care of in a follow up change / #504.
0da0e01
to
8d28da6
Compare
We refactor testTarget from an unstructured string, to a list of strings representing testTargets. See the corresponding nixpkgs PR: https://github.com/NixOS/nixpkgs/pull/306283/files Co-authored-by: sternenseemann <[email protected]>
8d28da6
to
a28d127
Compare
Result (zero rebuilds!): diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix
index bd0fb7354264..503a37fe3a30 100644
--- a/pkgs/development/haskell-modules/hackage-packages.nix
+++ b/pkgs/development/haskell-modules/hackage-packages.nix
@@ -92690,7 +92690,7 @@ self: {
];
testToolDepends = [ hspec-discover ];
doHaddock = false;
- testTarget = "spec";
+ testTargets = [ "spec" ];
description = "DNS library in Haskell";
license = lib.licenses.bsd3;
}) {};
@@ -157039,7 +157039,7 @@ self: {
wai wai-logger warp warp-tls zlib
];
executableHaskellDepends = [ base ];
- testTarget = "--test-option=--no-net";
+ testTargets = [ "--test-option=--no-net" ];
description = "Haskell API Search";
license = lib.licenses.bsd3;
mainProgram = "hoogle";
@@ -163560,7 +163560,7 @@ self: {
transformers
];
testToolDepends = [ hspec-meta ];
- testTarget = "--test-option=--skip --test-option='Test.Hspec.Core.Runner.hspecResult runs specs in parallel'";
+ testTargets = [ "--test-option=--skip" "--test-option='Test.Hspec.Core.Runner.hspecResult runs specs in parallel'" ];
description = "A Testing Framework for Haskell";
license = lib.licenses.mit;
hydraPlatforms = lib.platforms.none;
@@ -163589,7 +163589,7 @@ self: {
temporary tf-random time transformers
];
testToolDepends = [ hspec-meta ];
- testTarget = "--test-option=--skip --test-option='Test.Hspec.Core.Runner.hspecResult runs specs in parallel'";
+ testTargets = [ "--test-option=--skip" "--test-option='Test.Hspec.Core.Runner.hspecResult runs specs in parallel'" ];
description = "A Testing Framework for Haskell";
license = lib.licenses.mit;
}) {}; |
Thanks! |
This comment was marked as outdated.
This comment was marked as outdated.
Disregard the comment above, I was looking at the wrong PR. |
We refactor testTarget from an unstructured string, to a list of strings representing testTargets.
See the corresponding nixpkgs PR: https://github.com/NixOS/nixpkgs/pull/306283/files