diff options
Diffstat (limited to 'tests/functional/bash-profile.sh')
-rw-r--r-- | tests/functional/bash-profile.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/functional/bash-profile.sh b/tests/functional/bash-profile.sh new file mode 100644 index 000000000..3faeaaba1 --- /dev/null +++ b/tests/functional/bash-profile.sh @@ -0,0 +1,9 @@ +source common.sh + +sed -e "s|@localstatedir@|$TEST_ROOT/profile-var|g" -e "s|@coreutils@|$coreutils|g" < ../../scripts/nix-profile.sh.in > $TEST_ROOT/nix-profile.sh + +user=$(whoami) +rm -rf $TEST_HOME $TEST_ROOT/profile-var +mkdir -p $TEST_HOME +USER=$user $SHELL -e -c ". $TEST_ROOT/nix-profile.sh; set" +USER=$user $SHELL -e -c ". $TEST_ROOT/nix-profile.sh" # test idempotency |