about summary refs log tree commit diff
path: root/tests/nix-profile.sh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-09-13T21·58-0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-09-13T21·58-0400
commit1bda006b748ffec371096af56a8fbf7125658f71 (patch)
treed86b6c79883d48bbbdf27201007c5824d95145f3 /tests/nix-profile.sh
parentaac14222f52b15c9f4eea90359e9df09fb301739 (diff)
Add a test for nix-profile.sh
Diffstat (limited to 'tests/nix-profile.sh')
-rw-r--r--tests/nix-profile.sh10
1 files changed, 10 insertions, 0 deletions
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 ]