1 import ./make-test-python.nix (
6 meta = with pkgs.lib; {
7 maintainers = teams.libretro.members ++ [ maintainers.j0hax ];
14 imports = [ ./common/user-account.nix ];
15 services.xserver.enable = true;
16 services.xserver.desktopManager.retroarch = {
18 package = pkgs.retroarchBare;
20 services.xserver.displayManager = {
22 defaultSession = "RetroArch";
33 user = nodes.machine.config.users.users.alice;
34 xdo = "${pkgs.xdotool}/bin/xdotool";
37 with subtest("Wait for login"):
39 machine.wait_for_file("/tmp/xauth_*")
40 machine.succeed("xauth merge /tmp/xauth_*")
42 with subtest("Check RetroArch started"):
43 machine.wait_until_succeeds("pgrep retroarch")
44 machine.wait_for_window("^RetroArch")
46 with subtest("Check configuration created"):
47 machine.wait_for_file("${user.home}/.config/retroarch/retroarch.cfg")
49 with subtest("Wait to get a screenshot"):
51 "${xdo} key Alt+F1 sleep 10"
53 machine.screenshot("screen")