about summary refs log tree commit diff
path: root/release.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-03-18 14:55:10 +0100
committeraszlig <aszlig@redmoonstudios.org>2015-03-18 14:55:10 +0100
commit57634b99c1b836d29af878071d4b9afb0be7c1ca (patch)
tree68ca115c8224ef8b8c8173db77861775f607f6a4 /release.nix
parent903106efb392dc6235dd02523c29b3fbfed37462 (diff)
tests: Refactor to something similar as machines/.
Similar to callMachine, we now have callTest. The latter uses
make-test.nix, so we don't need to import the file explicitly anymore
and can just write our VM test by using either an attrset or a lambda
function which also gets our own packages in a vuizvui namespace.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'release.nix')
-rw-r--r--release.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/release.nix b/release.nix
index a6bbc06d..1193e1bd 100644
--- a/release.nix
+++ b/release.nix
@@ -8,10 +8,9 @@ in with pkgs.lib; with builtins; {
     attrs.build.config.system.build.toplevel
   ) (import ./machines { inherit system; });
 
-  tests = {
-    aszlig.i3 = import ./tests/aszlig/i3.nix { inherit system; };
-    labnet.heinrich = import ./tests/labnet/heinrich.nix { inherit system; };
-  };
+  tests = mapAttrsRecursiveCond (t: !(t ? test)) (const id) (import ./tests {
+    inherit system;
+  });
 
   manual = let
     modules = import <nixpkgs/nixos/lib/eval-config.nix> {