2019-11-04 13:23:58 +01:00
|
|
|
source common.sh
|
|
|
|
|
2021-09-13 14:29:42 +02:00
|
|
|
sed -i 's/experimental-features .*/& recursive-nix/' "$NIX_CONF_DIR"/nix.conf
|
|
|
|
restartDaemon
|
|
|
|
|
2019-12-03 19:18:47 +01:00
|
|
|
# FIXME
|
2023-03-16 21:00:20 +01:00
|
|
|
if [[ $(uname) != Linux ]]; then skipTest "Not running Linux"; fi
|
2019-12-03 19:18:47 +01:00
|
|
|
|
2019-11-04 13:23:58 +01:00
|
|
|
clearStore
|
|
|
|
|
2020-06-25 18:26:34 +02:00
|
|
|
rm -f $TEST_ROOT/result
|
|
|
|
|
2020-07-24 20:38:56 +02:00
|
|
|
export unreachable=$(nix store add-path ./recursive.sh)
|
2019-11-04 13:23:58 +01:00
|
|
|
|
2023-04-20 01:36:05 +02: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 13:23:58 +01: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
|