diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-06-03 14:34:29 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-06-03 14:34:29 +0200 |
commit | 481ef8ddd64c8bac88cfd12fbf83f6569a355b6b (patch) | |
tree | c64688e739c9b3c3b035d25bd44d0b5895914867 /nixos/tests | |
parent | 3aeea3eb805bb95b4a6dcad7319f8a992276f6bb (diff) |
nixosTests: Add allDrivers for development purposes
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/all-tests.nix | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index e61798676a0de..f9e32592e95bc 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -26,8 +26,22 @@ let featureFlags.minimalModules = {}; }; 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 {}; acme = handleTest ./acme.nix {}; adguardhome = handleTest ./adguardhome.nix {}; @@ -620,4 +634,5 @@ in zookeeper = handleTest ./zookeeper.nix {}; zrepl = handleTest ./zrepl.nix {}; zsh-history = handleTest ./zsh-history.nix {}; -} +}; +in tests |