1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 02:43:54 +02:00

Test the NAR info cache

This commit is contained in:
Eelco Dolstra 2016-05-30 14:53:57 +02:00
parent 3593c8285d
commit bac123ddd9
6 changed files with 25 additions and 29 deletions

View file

@ -1,11 +1,10 @@
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
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
[ -L $home/.nix-profile ]
[ -e $home/.nix-channels ]
[ -L $TEST_HOME/.nix-profile ]
[ -e $TEST_HOME/.nix-channels ]