summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2017-05-15 20:35:30 +0200
committerDaiderd Jordan <daiderd@gmail.com>2017-05-15 20:35:30 +0200
commit2ed3ca511ff0c5d18ebf09047a34a700236110c7 (patch)
tree189591c43b6dedd98da3f8e1d6adddcee191c551 /tests
parent1b6f56f5b8042000a826ecba2ebe52a831e2df46 (diff)
add test for default environment.systemPath
Diffstat (limited to 'tests')
-rw-r--r--tests/environment-path.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/environment-path.nix b/tests/environment-path.nix
new file mode 100644
index 0000000..d0f3d84
--- /dev/null
+++ b/tests/environment-path.nix
@@ -0,0 +1,15 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+{
+ programs.bash.enable = true;
+
+ test = ''
+ echo checking /run/current-system/sw/bin in systemPath >&2
+ grep 'export PATH=.*:/run/current-system/sw/bin' ${config.out}/etc/bashrc
+
+ echo checking /bin and /sbin in systemPath >&2
+ grep 'export PATH=.*:/usr/bin:/usr/sbin:/bin:/sbin' ${config.out}/etc/bashrc
+ '';
+}