From 1bda006b748ffec371096af56a8fbf7125658f71 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 13 Sep 2012 17:58:14 -0400 Subject: Add a test for nix-profile.sh --- tests/nix-profile.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/nix-profile.sh (limited to 'tests/nix-profile.sh') diff --git a/tests/nix-profile.sh b/tests/nix-profile.sh new file mode 100644 index 000000000000..5530d7737689 --- /dev/null +++ b/tests/nix-profile.sh @@ -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 ] -- cgit 1.4.1