1
0
Fork 0
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:
Daiderd Jordan 2017-12-13 23:05:46 +01:00
parent ba7202e789
commit fa8b71bdf6
No known key found for this signature in database
GPG key ID: D02435D05B810C96
2 changed files with 11 additions and 0 deletions

View file

@ -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
View 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
'';
}