2022-06-15 16:59:21 +02:00
|
|
|
{ lib }:
|
|
|
|
let
|
|
|
|
|
2023-04-10 17:55:34 +02:00
|
|
|
evalTest = module: lib.evalModules {
|
|
|
|
modules = testModules ++ [ module ];
|
2023-04-17 19:48:53 +02:00
|
|
|
class = "nixosTest";
|
2023-04-10 17:55:34 +02:00
|
|
|
};
|
2022-09-29 10:32:31 +02:00
|
|
|
runTest = module: (evalTest ({ config, ... }: { imports = [ module ]; result = config.test; })).config.result;
|
2022-06-15 16:59:21 +02:00
|
|
|
|
|
|
|
testModules = [
|
|
|
|
./call-test.nix
|
|
|
|
./driver.nix
|
|
|
|
./interactive.nix
|
|
|
|
./legacy.nix
|
|
|
|
./meta.nix
|
|
|
|
./name.nix
|
|
|
|
./network.nix
|
|
|
|
./nodes.nix
|
|
|
|
./pkgs.nix
|
|
|
|
./run.nix
|
|
|
|
./testScript.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
|
|
|
inherit evalTest runTest testModules;
|
|
|
|
}
|