mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
add test for environment.shells
This commit is contained in:
parent
ba7202e789
commit
fa8b71bdf6
2 changed files with 11 additions and 0 deletions
|
@ -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));
|
||||
|
|
10
tests/system-shells.nix
Normal file
10
tests/system-shells.nix
Normal file
|
@ -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
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue