summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2017-12-13 23:05:46 +0100
committerDaiderd Jordan <daiderd@gmail.com>2017-12-13 23:05:46 +0100
commitfa8b71bdf6bf96cf121cde9ed367a93ff0371420 (patch)
treef4bc8b17804dbc59c4c4a88c37445f7dafb48f61
parentba7202e789ed87b4913028bae0a9de03156292c4 (diff)
add test for environment.shells
-rw-r--r--release.nix1
-rw-r--r--tests/system-shells.nix10
2 files changed, 11 insertions, 0 deletions
diff --git a/release.nix b/release.nix
index 8c61fcd..af1f506 100644
--- a/release.nix
+++ b/release.nix
@@ -97,6 +97,7 @@ let
tests.system-path-bash = makeTest ./tests/system-path-bash.nix;
tests.system-path-fish = makeTest ./tests/system-path-fish.nix;
tests.system-path-zsh = makeTest ./tests/system-path-zsh.nix;
+ tests.system-shells = makeTest ./tests/system-shells.nix;
}
// (mapTestOn (packagePlatforms packageSet));
diff --git a/tests/system-shells.nix b/tests/system-shells.nix
new file mode 100644
index 0000000..61708ff
--- /dev/null
+++ b/tests/system-shells.nix
@@ -0,0 +1,10 @@
+{ config, pkgs, ... }:
+
+{
+ environment.shells = [ pkgs.zsh ];
+
+ test = ''
+ echo checking zsh in /etc/shells >&2
+ grep '/run/current-system/sw/bin/zsh' ${config.out}/etc/shells
+ '';
+}