aboutsummaryrefslogtreecommitdiff
path: root/tests/post-hook.sh
diff options
context:
space:
mode:
authorThéophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>2023-05-10 14:30:42 +0200
committerGitHub <noreply@github.com>2023-05-10 14:30:42 +0200
commit85ff21205104a475c8745c5919aa1378dd49ecad (patch)
tree74a75e8b98b0e06a5d4fd28e6999a510f670e121 /tests/post-hook.sh
parentaacde38d2c8a0cf159794e5ec87ef63dccf59e35 (diff)
parentd1ff33d2d6f966da4d7ee85918cf6b12b951135f (diff)
Merge pull request #7721 from yorickvP/post-build-hook
Also pass unwanted outputs to post-build-hook
Diffstat (limited to 'tests/post-hook.sh')
-rw-r--r--tests/post-hook.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/post-hook.sh b/tests/post-hook.sh
index 0266eb15d..752f8220c 100644
--- a/tests/post-hook.sh
+++ b/tests/post-hook.sh
@@ -17,6 +17,10 @@ fi
# Build the dependencies and push them to the remote store.
nix-build -o $TEST_ROOT/result dependencies.nix --post-build-hook "$pushToStore"
+# See if all outputs are passed to the post-build hook by only specifying one
+# We're not able to test CA tests this way
+export BUILD_HOOK_ONLY_OUT_PATHS=$([ ! $NIX_TESTS_CA_BY_DEFAULT ])
+nix-build -o $TEST_ROOT/result-mult multiple-outputs.nix -A a.first --post-build-hook "$pushToStore"
clearStore
@@ -24,3 +28,4 @@ clearStore
# closure of what we've just built.
nix copy --from "$REMOTE_STORE" --no-require-sigs -f dependencies.nix
nix copy --from "$REMOTE_STORE" --no-require-sigs -f dependencies.nix input1_drv
+nix copy --from "$REMOTE_STORE" --no-require-sigs -f multiple-outputs.nix a^second