diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-12-11 05:46:26 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-12-11 05:46:26 +0100 |
commit | 3c61dc3e6f47e95a86da9a152833c8d98e80f97f (patch) | |
tree | bb6d2f070d51b5563475d8144dadf0ef688a408b /modules/profiles/common.nix | |
parent | 878f7bb7ee944dd0ae20b8041c34d8406cca6a67 (diff) |
profiles/common: Move gathering tests to lib/.
So my gut feeling in 90c080e was't wrong after all, so we need to create jobs for all the tests the machines include. In order to make this easier, we're going to re-use the collection of all test attributes from release.nix so putting it in lib/ makes sense. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules/profiles/common.nix')
-rw-r--r-- | modules/profiles/common.nix | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/modules/profiles/common.nix b/modules/profiles/common.nix index b7fad147..58d6c27b 100644 --- a/modules/profiles/common.nix +++ b/modules/profiles/common.nix @@ -94,19 +94,8 @@ with lib; ] ++ optional config.vuizvui.enableGlobalNixpkgsConfig nixpkgsConfig; in mkIf config.vuizvui.modifyNixPath (mkOverride 90 nixPath); - _module.args.tests = { - nixos = let - upstreamTests = (import "${nixpkgs}/nixos/release.nix" { - inherit nixpkgs; - }).tests; - isTestOrSystems = attr: attr ? test || attr ? ${system}; - cond = attr: !isTestOrSystems attr; - reduce = attr: if attr ? test then attr else attr.${system}; - in mapAttrsRecursiveCond cond (path: reduce) upstreamTests; - - vuizvui = import ../../tests { - inherit system; - }; + _module.args.tests = import ../../lib/get-tests.nix { + inherit nixpkgs system; }; }; } |