about summary refs log tree commit diff
path: root/tests/default.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 /tests/default.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 'tests/default.nix')
-rw-r--r--tests/default.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/default.nix b/tests/default.nix
new file mode 100644
index 00000000..96b7da48
--- /dev/null
+++ b/tests/default.nix
@@ -0,0 +1,15 @@
+{ system ? builtins.currentSystem, ... }:
+
+let
+  callTest = path: import ./make-test.nix (import path) {
+    inherit system;
+  };
+
+in {
+  aszlig = {
+    i3 = callTest ./aszlig/i3.nix;
+  };
+  labnet = {
+    heinrich = callTest ./labnet/heinrich.nix;
+  };
+}