diff options
author | Matthew Kenigsberg <matthewkenigsberg@gmail.com> | 2020-04-29 15:37:21 -0600 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-05-01 12:17:53 +0200 |
commit | 2852a486f864c385696fb7ee28836b183976ca63 (patch) | |
tree | c1a763c8fe489afe0021383814de2b7f797f1db0 /tests/run.sh | |
parent | d6b4047c2fd8c197bf7a9f0f9a2f1cfb214e2e89 (diff) |
rename run to shell in tests
(cherry picked from commit f459ca547fda4b0ca477d895413e86b69a580ab0)
Diffstat (limited to 'tests/run.sh')
-rw-r--r-- | tests/run.sh | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/run.sh b/tests/run.sh deleted file mode 100644 index d1dbfd6bd..000000000 --- a/tests/run.sh +++ /dev/null @@ -1,28 +0,0 @@ -source common.sh - -clearStore -clearCache - -nix run -f run.nix hello -c hello | grep 'Hello World' -nix run -f run.nix hello -c hello NixOS | grep 'Hello NixOS' - -if ! canUseSandbox; then exit; fi - -chmod -R u+w $TEST_ROOT/store0 || true -rm -rf $TEST_ROOT/store0 - -clearStore - -path=$(nix eval --raw -f run.nix hello) - -# Note: we need the sandbox paths to ensure that the shell is -# visible in the sandbox. -nix run --sandbox-build-dir /build-tmp \ - --sandbox-paths '/nix? /bin? /lib? /lib64? /usr?' \ - --store $TEST_ROOT/store0 -f run.nix hello -c hello | grep 'Hello World' - -path2=$(nix run --sandbox-paths '/nix? /bin? /lib? /lib64? /usr?' --store $TEST_ROOT/store0 -f run.nix hello -c $SHELL -c 'type -p hello') - -[[ $path/bin/hello = $path2 ]] - -[[ -e $TEST_ROOT/store0/nix/store/$(basename $path)/bin/hello ]] |