at 25.11-pre 1.0 kB view raw
1{ pkgs, lib, ... }: 2{ 3 name = "aaaaxy"; 4 meta.maintainers = with lib.maintainers; [ Luflosi ]; 5 6 nodes.machine = { 7 imports = [ 8 ./common/x11.nix 9 ]; 10 }; 11 12 # This starts the game from a known state, feeds it a prerecorded set of button presses 13 # and then checks if the final game state is identical to the expected state. 14 # This is also what AAAAXY's CI system does and serves as a good sanity check. 15 testScript = '' 16 machine.wait_for_x() 17 18 machine.succeed( 19 # benchmark.dem needs to be in a mutable directory, 20 # so we can't just refer to the file in the Nix store directly 21 "mkdir -p '/tmp/aaaaxy/assets/demos/'", 22 "ln -s '${pkgs.aaaaxy.testing_infra}/assets/demos/benchmark.dem' '/tmp/aaaaxy/assets/demos/'", 23 """ 24 '${pkgs.aaaaxy.testing_infra}/scripts/regression-test-demo.sh' \ 25 'aaaaxy' 'on track for Any%, All Paths, All Flipped, No Teleports and No Coil' \ 26 '${pkgs.aaaaxy}/bin/aaaaxy' '/tmp/aaaaxy/assets/demos/benchmark.dem' 27 """, 28 ) 29 ''; 30}