nixpkgs/pkgs/build-support/testers
Arthur Gautier 562f879cd1 runNixOSTest: 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.runNixOSTest {
  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
..
hasPkgConfigModule testers.hasPkgConfigModule: Extract and add tests, docs 2023-01-30 00:35:34 +01:00
test testers.runNixOSTest: init 2023-05-11 19:12:07 +02:00
testMetaPkgConfig meta.pkgConfigModules: Init convention 2023-02-03 09:37:31 -05:00
default.nix runNixOSTest: adds support for lib.extend 2023-06-29 09:13:44 -07:00
expect-failure.sh test.testers: fix getAllOutputNames not found 2023-01-17 20:34:36 +02:00
test-equal-derivation.nix