summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2018-02-14 05:03:20 +0100
committerJan Tojnar <jtojnar@gmail.com>2018-02-15 01:11:13 +0100
commit201cc158cb88b989eda48a5b4da12e187798b7b2 (patch)
tree7edf54cda65d7ca3ea7a0df836757dc1346946a1 /nixos/tests
parentbe54e4b07e11bafd2ee91e91c781b7b06542d5e0 (diff)
nixos/fwupd: add test
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/fwupd.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/nixos/tests/fwupd.nix b/nixos/tests/fwupd.nix
new file mode 100644
index 0000000000000..bf4ef25130b3d
--- /dev/null
+++ b/nixos/tests/fwupd.nix
@@ -0,0 +1,19 @@
+# run installed tests
+import ./make-test.nix ({ pkgs, ... }: {
+  name = "fwupd";
+
+  meta = {
+    maintainers = pkgs.fwupd.meta.maintainers;
+  };
+
+  machine = { config, pkgs, ... }: {
+    services.fwupd.enable = true;
+    environment.systemPackages = with pkgs; [ gnome-desktop-testing ];
+    environment.variables.XDG_DATA_DIRS = [ "${pkgs.fwupd.installedTests}/share" ];
+    virtualisation.memorySize = 768;
+  };
+
+  testScript = ''
+    $machine->succeed("gnome-desktop-testing-runner");
+  '';
+})