1
0
Fork 0
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:
Daiderd Jordan 2017-05-14 00:43:45 +02:00
parent 264a9237dd
commit 406484b290
No known key found for this signature in database
GPG key ID: D02435D05B810C96
2 changed files with 12 additions and 0 deletions

View file

@ -93,6 +93,8 @@ let
tests.system-path-fish = makeTest ./tests/system-path-fish.nix; tests.system-path-fish = makeTest ./tests/system-path-fish.nix;
tests.system-path-zsh = makeTest ./tests/system-path-zsh.nix; tests.system-path-zsh = makeTest ./tests/system-path-zsh.nix;
tests.launchd-setenv = makeTest ./tests/launchd-setenv.nix;
} }
// (mapTestOn (packagePlatforms packageSet)); // (mapTestOn (packagePlatforms packageSet));

10
tests/launchd-setenv.nix Normal file
View 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
'';
}