diff options
Diffstat (limited to 'tests/post-hook.sh')
-rw-r--r-- | tests/post-hook.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/post-hook.sh b/tests/post-hook.sh index 0266eb15d..8b7838058 100644 --- a/tests/post-hook.sh +++ b/tests/post-hook.sh @@ -17,6 +17,9 @@ 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 +export BUILD_HOOK_ONLY_OUT_PATHS=1 +nix-build -o $TEST_ROOT/result-mult multiple-outputs.nix -A a.first --post-build-hook "$pushToStore" clearStore @@ -24,3 +27,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 |