2012-09-13 23:58:14 +02:00
|
|
|
source common.sh
|
|
|
|
|
2016-05-31 13:07:24 +02:00
|
|
|
sed -e "s|@localstatedir@|$TEST_ROOT/profile-var|g" -e "s|@coreutils@|$coreutils|g" < ../scripts/nix-profile.sh.in > $TEST_ROOT/nix-profile.sh
|
|
|
|
|
2016-04-13 16:43:33 +02:00
|
|
|
user=$(whoami)
|
2016-05-31 13:07:24 +02:00
|
|
|
rm -rf $TEST_HOME $TEST_ROOT/profile-var
|
2016-05-30 14:53:57 +02:00
|
|
|
mkdir -p $TEST_HOME
|
2016-05-31 13:07:24 +02:00
|
|
|
USER=$user $SHELL -e -c ". $TEST_ROOT/nix-profile.sh; set"
|
|
|
|
USER=$user $SHELL -e -c ". $TEST_ROOT/nix-profile.sh" # test idempotency
|
2012-09-13 23:58:14 +02:00
|
|
|
|
2016-05-30 14:53:57 +02:00
|
|
|
[ -L $TEST_HOME/.nix-profile ]
|
|
|
|
[ -e $TEST_HOME/.nix-channels ]
|
2016-05-31 13:07:24 +02:00
|
|
|
[ -e $TEST_ROOT/profile-var/nix/gcroots/per-user/$user ]
|
|
|
|
[ -e $TEST_ROOT/profile-var/nix/profiles/per-user/$user ]
|