1 import ./make-test-python.nix ({ pkgs, ...} :
7 { imports = [ ./common/x11.nix ];
8 hardware.opengl.driSupport = true;
9 environment.systemPackages = [ pkgs.openarena ];
14 meta = with pkgs.lib.maintainers; {
15 maintainers = [ fpletz ];
20 { services.openarena = {
22 extraFlags = [ "+set g_gametype 0" "+map oa_dm7" "+addbot Angelyss" "+addbot Arachna" ];
35 server.wait_for_unit("openarena")
36 server.wait_until_succeeds("ss --numeric --udp --listening | grep -q 27960")
41 client1.execute("openarena +set r_fullscreen 0 +set name Foo +connect server >&2 &")
42 client2.execute("openarena +set r_fullscreen 0 +set name Bar +connect server >&2 &")
44 server.wait_until_succeeds(
45 "journalctl -u openarena -e | grep -q 'Foo.*entered the game'"
47 server.wait_until_succeeds(
48 "journalctl -u openarena -e | grep -q 'Bar.*entered the game'"
51 server.sleep(10) # wait for a while to get a nice screenshot
53 client1.screenshot("screen_client1_1")
54 client2.screenshot("screen_client2_1")
60 client1.screenshot("screen_client1_2")
61 client2.screenshot("screen_client2_2")
67 client1.screenshot("screen_client1_3")
68 client2.screenshot("screen_client2_3")