1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-10 04:43:53 +02:00

* Test for runtime root finding.

This commit is contained in:
Eelco Dolstra 2006-07-21 12:46:54 +00:00
parent dcded7da47
commit 7adaa6d446
5 changed files with 64 additions and 5 deletions

View file

@ -1,10 +1,12 @@
set -e
# Maybe the build directory is symlinked.
export NIX_IGNORE_SYMLINK_STORE=1
export TEST_ROOT=$(pwd)/test-tmp
export NIX_STORE_DIR=$TEST_ROOT/store
export NIX_STORE_DIR
if ! NIX_STORE_DIR=$(readlink -f $TEST_ROOT/store); then
# Maybe the build directory is symlinked.
export NIX_IGNORE_SYMLINK_STORE=1
NIX_STORE_DIR=$TEST_ROOT/store
fi
export NIX_DATA_DIR=$TEST_ROOT/data
export NIX_LOCALSTATE_DIR=$TEST_ROOT/var
export NIX_LOG_DIR=$TEST_ROOT/var/log/nix