diff options
author | regnat <rg@regnat.ovh> | 2021-07-06 08:42:47 +0200 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2021-07-06 08:42:47 +0200 |
commit | a487a652ed2f662782529d8f2bea4cf90a05e0c9 (patch) | |
tree | e1880ea7d4db2c69e702c565e389aa27ded05e28 /tests/tarball.sh | |
parent | 83615fcf8fe6095b60e33097e2d15fb1a3f56298 (diff) |
allow fetchTarball to take a `name` argument
Diffstat (limited to 'tests/tarball.sh')
-rw-r--r-- | tests/tarball.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/tarball.sh b/tests/tarball.sh index d53ec8cd9..279ef5672 100644 --- a/tests/tarball.sh +++ b/tests/tarball.sh @@ -30,6 +30,7 @@ test_tarball() { nix-build -o $TEST_ROOT/result -E "import (fetchTree file://$tarball)" nix-build -o $TEST_ROOT/result -E "import (fetchTree { type = \"tarball\"; url = file://$tarball; })" nix-build -o $TEST_ROOT/result -E "import (fetchTree { type = \"tarball\"; url = file://$tarball; narHash = \"$hash\"; })" + nix-build -o $TEST_ROOT/result -E "import (fetchTree { type = \"tarball\"; url = file://$tarball; narHash = \"$hash\"; name = \"foo\"; })" nix-build -o $TEST_ROOT/result -E "import (fetchTree { type = \"tarball\"; url = file://$tarball; narHash = \"sha256-xdKv2pq/IiwLSnBBJXW8hNowI4MrdZfW+SYqDQs7Tzc=\"; })" 2>&1 | grep 'NAR hash mismatch in input' nix-instantiate --strict --eval -E "!((import (fetchTree { type = \"tarball\"; url = file://$tarball; narHash = \"$hash\"; })) ? submodules)" >&2 |