aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/bash-profile.sh
blob: 3faeaaba1dcb9b14a033bf77f9245e7fbf3f49ab (plain)
1
2
3
4
5
6
7
8
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