3 pkgs ? import ../.. { inherit system config; },
4 # Use a minimal kernel?
8 # !!! See comment about args in lib/modules.nix
9 specialArgs ? throw "legacy - do not use, see error below",
10 # Modules to add to each VM
11 extraConfigurations ? [ ],
14 nixos-lib = import ./default.nix { inherit (pkgs) lib; };
17 pkgs.lib.throwIf (args ? specialArgs)
19 testing-python.nix: `specialArgs` is not supported anymore. If you're looking
20 for the public interface to the NixOS test framework, use `runTest`, and
22 See https://nixos.org/manual/nixos/unstable/index.html#sec-calling-nixos-tests
23 and https://nixos.org/manual/nixos/unstable/index.html#test-opt-node.specialArgs
52 # Make a full-blown test (legacy)
53 # For an official public interface to the tests, see
54 # https://nixos.org/manual/nixos/unstable/index.html#sec-calling-nixos-tests
61 globalTimeout ? (60 * 60),
63 skipTypeCheck ? false,
64 # Skip linting (mainly intended for faster dev cycles)
69 pos ? # position used in error messages and for meta.position
71 if meta.description or null != null then
72 builtins.unsafeGetAttrPos "description" meta
74 builtins.unsafeGetAttrPos "testScript" t
76 extraPythonPackages ? (_: [ ]),
84 _file = "makeTest parameters";
89 _file = "makeTest: extraConfigurations";
90 imports = extraConfigurations;
96 testConfig.test # For nix-build
97 // testConfig; # For all-tests.nix
99 simpleTest = as: (makeTest as).test;