mirror of
https://github.com/NixOS/nix
synced 2025-07-10 04:43:53 +02:00
parent
f12492c66d
commit
0a4e90395c
7 changed files with 12 additions and 6 deletions
|
@ -14,6 +14,8 @@ TESTS = init.sh hash.sh lang.sh add.sh simple.sh dependencies.sh \
|
|||
|
||||
XFAIL_TESTS =
|
||||
|
||||
profiledir = $(sysconfdir)/profile.d
|
||||
|
||||
include ../substitute.mk
|
||||
|
||||
$(TESTS): common.sh config.nix
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
set -e
|
||||
|
||||
datadir="@datadir@"
|
||||
sysconfdir="@sysconfdir@"
|
||||
profiledir="@profiledir@"
|
||||
|
||||
export TEST_ROOT=$(pwd)/test-tmp
|
||||
export NIX_STORE_DIR
|
||||
|
|
|
@ -3,8 +3,8 @@ 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
|
||||
HOME=$home $SHELL -e -c ". $profiledir/nix.sh"
|
||||
HOME=$home $SHELL -e -c ". $profiledir/nix.sh" # test idempotency
|
||||
|
||||
[ -L $home/.nix-profile ]
|
||||
[ -e $home/.nix-channels ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue