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:
parent
aac14222f5
commit
1bda006b74
3 changed files with 12 additions and 1 deletions
10
tests/nix-profile.sh
Normal file
10
tests/nix-profile.sh
Normal 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 ]
|
Loading…
Add table
Add a link
Reference in a new issue