tvl-depot/tests/nix-profile.sh

11 lines
262 B
Bash
Raw Normal View History

2012-09-13 23:58:14 +02:00
source common.sh
2016-04-13 16:43:33 +02:00
user=$(whoami)
2016-05-30 14:53:57 +02:00
rm -rf $TEST_HOME
mkdir -p $TEST_HOME
USER=$user $SHELL -e -c ". ../scripts/nix-profile.sh"
USER=$user $SHELL -e -c ". ../scripts/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 ]