about summary refs log tree commit diff
path: root/tests/nix-profile.sh
blob: db1edd73eef0165dc756f4139590c56954e1159c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
source common.sh

home=$TEST_ROOT/home
user=$(whoami)
rm -rf $home
mkdir -p $home
HOME=$home USER=$user $SHELL -e -c ". ../scripts/nix-profile.sh"
HOME=$home USER=$user $SHELL -e -c ". ../scripts/nix-profile.sh" # test idempotency

[ -L $home/.nix-profile ]
[ -e $home/.nix-channels ]