aboutsummaryrefslogtreecommitdiff
path: root/tests/restricted.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/restricted.sh')
-rw-r--r--tests/restricted.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/restricted.sh b/tests/restricted.sh
index 6c0392fac..0605383cc 100644
--- a/tests/restricted.sh
+++ b/tests/restricted.sh
@@ -36,3 +36,5 @@ ln -sfn $(pwd)/restricted.nix $TEST_ROOT/restricted.nix
(! nix-instantiate --eval --restrict-eval $TEST_ROOT/restricted.nix -I $TEST_ROOT)
(! nix-instantiate --eval --restrict-eval $TEST_ROOT/restricted.nix -I .)
nix-instantiate --eval --restrict-eval $TEST_ROOT/restricted.nix -I $TEST_ROOT -I .
+
+[[ $(nix eval --raw --restrict-eval -I . '(builtins.readFile "${import ./simple.nix}/hello")') == 'Hello World!' ]]