1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 23:03:53 -04:00
nix/tests/functional/recursive.sh

22 lines
598 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2019-11-04 07:23:58 -05:00
source common.sh
enableFeatures 'recursive-nix'
restartDaemon
2019-11-04 07:23:58 -05:00
clearStore
2020-06-25 12:26:34 -04:00
rm -f $TEST_ROOT/result
export unreachable=$(nix store add-path ./recursive.sh)
2019-11-04 07:23:58 -05: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 07:23:58 -05: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