diff options
author | Théophane Hufschmitt <theophane.hufschmitt@tweag.io> | 2022-05-05 14:53:59 +0200 |
---|---|---|
committer | Théophane Hufschmitt <theophane.hufschmitt@tweag.io> | 2022-05-05 14:53:59 +0200 |
commit | 4c5aa8520c501cae904b9dc3a2c1fc90d2f0af83 (patch) | |
tree | 06c6029594ef699b768577d08676a32ccde4c37e /tests | |
parent | b3ed32d0fd3dedd1428c069d20a35e1f8a26d566 (diff) |
Make sure that `nix build` works in `--impure` mode
Regression test for <https://github.com/NixOS/nix/issues/6488>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/build.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/build.sh b/tests/build.sh index ff16d1603..fc6825e25 100644 --- a/tests/build.sh +++ b/tests/build.sh @@ -56,6 +56,13 @@ nix build -f multiple-outputs.nix --json 'e^*' --no-link | jq --exit-status ' (.outputs | keys == ["a", "b", "c"])) ' +# Make sure that `--impure` works (regression test for https://github.com/NixOS/nix/issues/6488) +nix build --impure -f multiple-outputs.nix --json e --no-link | jq --exit-status ' + (.[0] | + (.drvPath | match(".*multiple-outputs-e.drv")) and + (.outputs | keys == ["a", "b"])) +' + testNormalization () { clearStore outPath=$(nix-build ./simple.nix --no-out-link) |