2012-09-13 21:58:14 +00:00
|
|
|
source common.sh
|
|
|
|
|
2024-10-25 11:19:52 +00:00
|
|
|
sed -e "s|@localstatedir@|$TEST_ROOT/profile-var|g" < ../../scripts/nix-profile.sh.in > $TEST_ROOT/nix-profile.sh
|
2016-05-31 11:07:24 +00:00
|
|
|
|
2024-05-06 16:13:15 +00:00
|
|
|
user=$(whoami || echo -n nixbld)
|
2016-05-31 11:07:24 +00:00
|
|
|
rm -rf $TEST_HOME $TEST_ROOT/profile-var
|
2016-05-30 12:53:57 +00:00
|
|
|
mkdir -p $TEST_HOME
|
2016-05-31 11:07:24 +00:00
|
|
|
USER=$user $SHELL -e -c ". $TEST_ROOT/nix-profile.sh; set"
|
|
|
|
USER=$user $SHELL -e -c ". $TEST_ROOT/nix-profile.sh" # test idempotency
|