mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
launchd: add test for envVariables
This commit is contained in:
parent
264a9237dd
commit
406484b290
2 changed files with 12 additions and 0 deletions
|
@ -93,6 +93,8 @@ let
|
|||
tests.system-path-fish = makeTest ./tests/system-path-fish.nix;
|
||||
tests.system-path-zsh = makeTest ./tests/system-path-zsh.nix;
|
||||
|
||||
tests.launchd-setenv = makeTest ./tests/launchd-setenv.nix;
|
||||
|
||||
}
|
||||
// (mapTestOn (packagePlatforms packageSet));
|
||||
|
||||
|
|
10
tests/launchd-setenv.nix
Normal file
10
tests/launchd-setenv.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
launchd.envVariables.FOO = "42";
|
||||
|
||||
test = ''
|
||||
echo checking launchd setenv in /activate >&2
|
||||
grep "launchctl setenv FOO '42'" ${config.out}/activate
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue