nixosTests: Add allDrivers for development purposes
This commit is contained in:
parent
3aeea3eb80
commit
481ef8ddd6
1 changed files with 18 additions and 3 deletions
|
@ -26,8 +26,22 @@ let
|
||||||
featureFlags.minimalModules = {};
|
featureFlags.minimalModules = {};
|
||||||
};
|
};
|
||||||
evalMinimalConfig = module: nixosLib.evalModules { modules = [ module ]; };
|
evalMinimalConfig = module: nixosLib.evalModules { modules = [ module ]; };
|
||||||
in
|
|
||||||
{
|
allDrivers = getDrivers tests;
|
||||||
|
|
||||||
|
getDrivers = ts:
|
||||||
|
if isDerivation ts
|
||||||
|
then ts.driver or null
|
||||||
|
else if isAttrs ts
|
||||||
|
then recurseIntoAttrs (mapAttrs (k: getDrivers) ts)
|
||||||
|
else null;
|
||||||
|
|
||||||
|
tests = {
|
||||||
|
|
||||||
|
# for typechecking of the scripts and evaluation of
|
||||||
|
# the nodes, without running VMs.
|
||||||
|
inherit allDrivers;
|
||||||
|
|
||||||
_3proxy = handleTest ./3proxy.nix {};
|
_3proxy = handleTest ./3proxy.nix {};
|
||||||
acme = handleTest ./acme.nix {};
|
acme = handleTest ./acme.nix {};
|
||||||
adguardhome = handleTest ./adguardhome.nix {};
|
adguardhome = handleTest ./adguardhome.nix {};
|
||||||
|
@ -620,4 +634,5 @@ in
|
||||||
zookeeper = handleTest ./zookeeper.nix {};
|
zookeeper = handleTest ./zookeeper.nix {};
|
||||||
zrepl = handleTest ./zrepl.nix {};
|
zrepl = handleTest ./zrepl.nix {};
|
||||||
zsh-history = handleTest ./zsh-history.nix {};
|
zsh-history = handleTest ./zsh-history.nix {};
|
||||||
}
|
};
|
||||||
|
in tests
|
||||||
|
|
Loading…
Reference in a new issue