summary refs log tree commit diff
path: root/nixos/tests/fwupd.nix
blob: 88dac8ccbcdb630ffbae5c6b3d5e91c0cbee78da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# run installed tests
import ./make-test.nix ({ pkgs, ... }: {
  name = "fwupd";

  meta = {
    maintainers = pkgs.fwupd.meta.maintainers;
  };

  machine = { pkgs, ... }: {
    services.fwupd.enable = true;
    services.fwupd.blacklistPlugins = []; # don't blacklist test plugin
    services.fwupd.enableTestRemote = 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");
  '';
})