nixpkgs/nixos/tests/sdl3.nix

27 lines
501 B
Nix
Raw Permalink Normal View History

{ pkgs, ... }:
{
name = "sdl3";
meta.maintainers = pkgs.sdl3.meta.maintainers;
2024-12-14 06:44:37 -04:00
nodes.machine =
{ pkgs, ... }:
{
imports = [ ./common/x11.nix ];
2024-12-14 06:44:37 -04:00
environment.systemPackages = [ pkgs.sdl3.passthru.debug-text-example ];
};
2024-12-14 06:44:37 -04:00
enableOCR = true;
2024-12-14 06:44:37 -04:00
testScript = ''
machine.wait_for_x()
2024-12-14 06:44:37 -04:00
machine.execute("debug-text >&2 &")
2024-12-14 06:44:37 -04:00
machine.wait_for_window("examples/renderer/debug-text")
machine.wait_for_text("Hello world")
2024-12-14 06:44:37 -04:00
machine.screenshot("screen")
'';
}