nixpkgs/nixos/lib/testing
Arthur Gautier 18c734d7f2 nixosTest: adds support for lib.extend
When lib overrides were used, before this commit, they would not be made
available in the configuration evaluation of nixosTest's nodes.

Sample code:
``` nix
let
  pkgs = import ./. {
    overlays = [
      (new: old: {
        lib = old.lib.extend (self: super: {
          sorry_dave = builtins.trace "There are no pod bay doors" "sorry dave";
        });
      })
    ];
  };
in
pkgs.testers.nixosTest {
  name = "demo lib overlay";

  nodes = {
    machine = { lib, ... }: {
      environment.etc."got-lib-overlay".text = lib.sorry_dave;
    };
  };

  testScript = { nodes }:
    ''
      start_all()
      machine.succeed('grep dave /etc/got-lib-overlay')
    '';
}
```
2023-06-29 09:13:44 -07:00
..
call-test.nix
default.nix lib/modules: Move class out of specialArgs 2023-05-06 18:32:58 +02:00
driver.nix nixos/qemu-vm: add option for named network interfaces 2023-05-24 08:54:20 +10:00
interactive.nix
legacy.nix
meta.nix
name.nix
network.nix nixos/qemu-vm: quoted string reformat 2023-05-24 08:54:22 +10:00
nixos-test-base.nix
nodes.nix nixosTest: adds support for lib.extend 2023-06-29 09:13:44 -07:00
pkgs.nix
run.nix
testScript.nix