nixpkgs/nixos/lib/testing
Gabriella Gonzalez b8698cd8d6
macOS support for NixOS tests (#282401)
Closes #193336
Closes #261694
Related to #108984

The goal here was to get the following flake to build and run on
`aarch64-darwin`:

```nix
{ inputs.nixpkgs.url = <this branch>;

  outputs = { nixpkgs, ... }: {
    checks.aarch64-darwin.default =
      nixpkgs.legacyPackages.aarch64-darwin.nixosTest {
        name = "test";

        nodes.machine = { };

        testScript = "";
      };
  };
}
```

… and after this change it does.  There's no longer a need for the
user to set `nodes.*.nixpkgs.pkgs` or
`nodes.*.virtualisation.host.pkgs` as the correct values are inferred
from the host system.
2024-03-02 06:33:14 +01:00
..
call-test.nix nixos/testing: Fix release.nix tests evaluation 2022-09-29 10:49:09 +02:00
default.nix lib/modules: Move class out of specialArgs 2023-05-06 18:32:58 +02:00
driver.nix nixos/test-driver: provide a global timeout 2023-10-29 12:45:00 +01:00
interactive.nix nixos/testing: Improve interactive docs 2022-09-24 17:42:52 +01:00
legacy.nix nixos/tests: remove minimal-kernel module 2022-12-22 01:42:15 +01:00
meta.nix nixos/lib/testing: set default timeout for VM tests 2023-02-16 19:17:53 +03:00
name.nix nixos/doc: Disambiguate test option ids 2022-09-29 12:41:59 +02:00
network.nix nixos/qemu-vm: quoted string reformat 2023-05-24 08:54:22 +10:00
nixos-test-base.nix nixos/lib/testing: remove yet another source of unnecessary test rebuilds 2024-02-27 23:35:05 +03:00
nodes.nix macOS support for NixOS tests (#282401) 2024-03-02 06:33:14 +01:00
pkgs.nix macOS support for NixOS tests (#282401) 2024-03-02 06:33:14 +01:00
run.nix macOS support for NixOS tests (#282401) 2024-03-02 06:33:14 +01:00
testScript.nix nixos/documentation: deprecate docbook option docs 2023-01-22 17:08:40 +01:00