diff options
Diffstat (limited to 'tests/tarball.sh')
-rw-r--r-- | tests/tarball.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/tarball.sh b/tests/tarball.sh index ae18490c2b62..254c4b626b87 100644 --- a/tests/tarball.sh +++ b/tests/tarball.sh @@ -21,3 +21,9 @@ nix-build -o $TMPDIR/result file://$tarball nix-build -o $TMPDIR/result '<foo>' -I foo=file://$tarball nix-build -o $TMPDIR/result -E "import (fetchTarball file://$tarball)" + +nix-instantiate --eval -E '1 + 2' -I fnord=file://no-such-tarball.tar.xz +nix-instantiate --eval -E 'with <fnord/xyzzy>; 1 + 2' -I fnord=file://no-such-tarball.tar.xz +(! nix-instantiate --eval -E '<fnord/xyzzy> 1' -I fnord=file://no-such-tarball.tar.xz) + +nix-instantiate --eval -E '<fnord/config.nix>' -I fnord=file://no-such-tarball.tar.xz -I fnord=. |