summary refs log tree commit diff
path: root/tests/misc.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc.nix')
-rw-r--r--tests/misc.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/misc.nix b/tests/misc.nix
new file mode 100644
index 00000000000..6d7d9ac758b
--- /dev/null
+++ b/tests/misc.nix
@@ -0,0 +1,21 @@
+# Miscellaneous small tests that don't warrant their own VM run.
+
+{ pkgs, ... }:
+
+{
+
+  machine = { config, pkgs, ... }: { };
+
+  testScript =
+    ''
+      subtest "nixos-version", sub {
+          $machine->succeed("[ `nixos-version | wc -w` = 1 ]");
+      };
+
+      # Regression test for GMP aborts on QEMU.
+      subtest "gmp", sub {
+          $machine->succeed("expr 1 + 2");
+      };
+    '';
+
+}