From fa8b71bdf6bf96cf121cde9ed367a93ff0371420 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 13 Dec 2017 23:05:46 +0100 Subject: [PATCH] add test for environment.shells --- release.nix | 1 + tests/system-shells.nix | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 tests/system-shells.nix 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 + ''; +}