about summary refs log tree commit diff
path: root/tests/aszlig
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-03-18 14:42:41 +0100
committeraszlig <aszlig@redmoonstudios.org>2015-03-18 14:42:41 +0100
commit903106efb392dc6235dd02523c29b3fbfed37462 (patch)
tree633dffbc29ec74863c592dbf51cd46950a0cc2c1 /tests/aszlig
parentbe4dbbc339433d0de03f801c1c1223b1cd26330d (diff)
tests: Properly namespace the VM tests.
We're going to write much more tests and don't want to clutter up the
tests/ directory.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'tests/aszlig')
-rw-r--r--tests/aszlig/i3.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/aszlig/i3.nix b/tests/aszlig/i3.nix
new file mode 100644
index 00000000..e90ff0f4
--- /dev/null
+++ b/tests/aszlig/i3.nix
@@ -0,0 +1,29 @@
+import ../make-test.nix ({ pkgs, ... }: {
+  name = "i3";
+
+  machine = { lib, ... }: {
+    imports = [ <nixpkgs/nixos/tests/common/x11.nix> ];
+
+    vuizvui.user.aszlig.profiles.base.enable = true;
+    vuizvui.user.aszlig.services.i3.enable = true;
+
+    services.xserver.windowManager.default = lib.mkForce "i3";
+    /* XXX */
+    fonts = {
+      enableCoreFonts = true;
+      enableFontDir = true;
+      enableGhostscriptFonts = true;
+      fonts = [
+        pkgs.dosemu_fonts
+        pkgs.liberation_ttf
+      ];
+    };
+    /* !XXX */
+  };
+
+  testScript = { nodes, ... }: ''
+    $machine->waitForX;
+    $machine->sleep(20);
+    $machine->screenshot("i3");
+  '';
+})