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

Add a test for nix-profile.sh

This commit is contained in:
Eelco Dolstra 2012-09-13 17:58:14 -04:00
parent aac14222f5
commit 1bda006b74
3 changed files with 12 additions and 1 deletions

10
tests/nix-profile.sh Normal file
View file

@ -0,0 +1,10 @@
source common.sh
home=$TEST_ROOT/home
rm -rf $home
mkdir -p $home
HOME=$home $SHELL -e -c ". $sysconfdir/profile.d/nix.sh"
HOME=$home $SHELL -e -c ". $sysconfdir/profile.d/nix.sh" # test idempotency
[ -e $home/.nix-profile ]
[ -e $home/.nix-channels ]