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:
parent
dcded7da47
commit
7adaa6d446
5 changed files with 64 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue