diff options
Diffstat (limited to 'tests/modules')
-rw-r--r-- | tests/modules/targets-darwin/darwin.nix | 20 | ||||
-rw-r--r-- | tests/modules/targets-darwin/default.nix | 1 | ||||
-rw-r--r-- | tests/modules/targets-linux/default.nix (renamed from tests/modules/targets/default.nix) | 0 | ||||
-rw-r--r-- | tests/modules/targets-linux/generic-linux.nix (renamed from tests/modules/targets/generic-linux.nix) | 0 |
4 files changed, 21 insertions, 0 deletions
diff --git a/tests/modules/targets-darwin/darwin.nix b/tests/modules/targets-darwin/darwin.nix new file mode 100644 index 00000000000..511ae87fd98 --- /dev/null +++ b/tests/modules/targets-darwin/darwin.nix @@ -0,0 +1,20 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + + darwinTestApp = pkgs.runCommandLocal "target-darwin-example-app" { } '' + mkdir -p $out/Applications + touch $out/Applications/example-app + ''; + +in { + config = { + home.packages = [ darwinTestApp ]; + + nmt.script = '' + assertFileExists 'home-files/Applications/Home Manager Apps/example-app' + ''; + }; +} diff --git a/tests/modules/targets-darwin/default.nix b/tests/modules/targets-darwin/default.nix new file mode 100644 index 00000000000..479f586eef3 --- /dev/null +++ b/tests/modules/targets-darwin/default.nix @@ -0,0 +1 @@ +{ targets-darwin = ./darwin.nix; } diff --git a/tests/modules/targets/default.nix b/tests/modules/targets-linux/default.nix index e13617ccb74..e13617ccb74 100644 --- a/tests/modules/targets/default.nix +++ b/tests/modules/targets-linux/default.nix diff --git a/tests/modules/targets/generic-linux.nix b/tests/modules/targets-linux/generic-linux.nix index d9bb85b651a..d9bb85b651a 100644 --- a/tests/modules/targets/generic-linux.nix +++ b/tests/modules/targets-linux/generic-linux.nix |