lix/tests/recursive.sh

20 lines
577 B
Bash
Raw Normal View History

2019-11-04 12:23:58 +00:00
source common.sh
enableFeatures 'recursive-nix'
restartDaemon
2019-11-04 12:23:58 +00:00
clearStore
2020-06-25 16:26:34 +00:00
rm -f $TEST_ROOT/result
export unreachable=$(nix store add-path ./recursive.sh)
2019-11-04 12:23:58 +00:00
NIX_BIN_DIR=$(dirname $(type -p nix)) nix --extra-experimental-features 'nix-command recursive-nix' build -o $TEST_ROOT/result -L --impure --file ./recursive.nix
2019-11-04 12:23:58 +00:00
[[ $(cat $TEST_ROOT/result/inner1) =~ blaat ]]
# Make sure the recursively created paths are in the closure.
nix path-info -r $TEST_ROOT/result | grep foobar
nix path-info -r $TEST_ROOT/result | grep fnord
nix path-info -r $TEST_ROOT/result | grep inner1