mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
27 lines
499 B
Nix
27 lines
499 B
Nix
{ lib }:
|
|
let
|
|
|
|
evalTest = module: lib.evalModules {
|
|
modules = testModules ++ [ module ];
|
|
class = "nixosTest";
|
|
};
|
|
runTest = module: (evalTest ({ config, ... }: { imports = [ module ]; result = config.test; })).config.result;
|
|
|
|
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;
|
|
}
|