diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2018-02-14 05:03:20 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2018-02-15 01:11:13 +0100 |
commit | 201cc158cb88b989eda48a5b4da12e187798b7b2 (patch) | |
tree | 7edf54cda65d7ca3ea7a0df836757dc1346946a1 /nixos | |
parent | be54e4b07e11bafd2ee91e91c781b7b06542d5e0 (diff) | |
download | nixlib-201cc158cb88b989eda48a5b4da12e187798b7b2.tar nixlib-201cc158cb88b989eda48a5b4da12e187798b7b2.tar.gz nixlib-201cc158cb88b989eda48a5b4da12e187798b7b2.tar.bz2 nixlib-201cc158cb88b989eda48a5b4da12e187798b7b2.tar.lz nixlib-201cc158cb88b989eda48a5b4da12e187798b7b2.tar.xz nixlib-201cc158cb88b989eda48a5b4da12e187798b7b2.tar.zst nixlib-201cc158cb88b989eda48a5b4da12e187798b7b2.zip |
nixos/fwupd: add test
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/release.nix | 1 | ||||
-rw-r--r-- | nixos/tests/fwupd.nix | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/nixos/release.nix b/nixos/release.nix index 4cae07dd99ac..f3d6eee1747f 100644 --- a/nixos/release.nix +++ b/nixos/release.nix @@ -258,6 +258,7 @@ in rec { tests.firefox = callTest tests/firefox.nix {}; tests.firewall = callTest tests/firewall.nix {}; tests.fleet = callTestOnTheseSystems ["x86_64-linux"] tests/fleet.nix {}; + tests.fwupd = callTest tests/fwupd.nix {}; #tests.gitlab = callTest tests/gitlab.nix {}; tests.gitolite = callTest tests/gitolite.nix {}; tests.gocd-agent = callTest tests/gocd-agent.nix {}; diff --git a/nixos/tests/fwupd.nix b/nixos/tests/fwupd.nix new file mode 100644 index 000000000000..bf4ef25130b3 --- /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"); + ''; +}) |