about summary refs log blame commit diff
path: root/tests/nix-profile.sh
blob: e2e0d1090804bcaadb8b41430803fe2b5d70eb27 (plain) (tree)
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