nixosTests.tuxguitar: migrate to runTest

Part of #386873
This commit is contained in:
Piotr Kwiecinski 2025-04-04 13:55:33 +02:00
parent b664a412c0
commit 470a936f46
No known key found for this signature in database
GPG key ID: EC0DE1CB9D5258B4
2 changed files with 24 additions and 28 deletions

View file

@ -1350,7 +1350,7 @@ in
tuptime = handleTest ./tuptime.nix { };
turbovnc-headless-server = handleTest ./turbovnc-headless-server.nix { };
turn-rs = handleTest ./turn-rs.nix { };
tuxguitar = handleTest ./tuxguitar.nix { };
tuxguitar = runTest ./tuxguitar.nix;
twingate = runTest ./twingate.nix;
typesense = handleTest ./typesense.nix { };
ucarp = handleTest ./ucarp.nix { };

View file

@ -1,29 +1,25 @@
import ./make-test-python.nix (
{ pkgs, ... }:
{
name = "tuxguitar";
meta = with pkgs.lib.maintainers; {
maintainers = [ ];
{ ... }:
{
name = "tuxguitar";
meta.maintainers = [ ];
nodes.machine =
{ config, pkgs, ... }:
{
imports = [
./common/x11.nix
];
services.xserver.enable = true;
environment.systemPackages = [ pkgs.tuxguitar ];
};
nodes.machine =
{ config, pkgs, ... }:
{
imports = [
./common/x11.nix
];
services.xserver.enable = true;
environment.systemPackages = [ pkgs.tuxguitar ];
};
testScript = ''
machine.wait_for_x()
machine.succeed("tuxguitar >&2 &")
machine.wait_for_window("TuxGuitar - Untitled.tg")
machine.sleep(1)
machine.screenshot("tuxguitar")
'';
}
)
testScript = ''
machine.wait_for_x()
machine.succeed("tuxguitar >&2 &")
machine.wait_for_window("TuxGuitar - Untitled.tg")
machine.sleep(1)
machine.screenshot("tuxguitar")
'';
}