1 import ./make-test-python.nix ({ pkgs, ...} :
5 meta = with pkgs.lib.maintainers; {
6 maintainers = [ matthewbauer ];
9 nodes.machine = { ... }:
12 imports = [ ./common/user-account.nix ];
16 # Disable color and bold and use a larger font to make OCR easier:
17 program = "${pkgs.xterm}/bin/xterm -cm -pc -fa Monospace -fs 24";
20 # Need to switch to a different GPU driver than the default one (-vga std) so that Cage can launch:
21 virtualisation.qemu.options = [ "-vga none -device virtio-gpu-pci" ];
26 testScript = { nodes, ... }: let
27 user = nodes.machine.config.users.users.alice;
29 with subtest("Wait for cage to boot up"):
31 machine.wait_for_file("/run/user/${toString user.uid}/wayland-0.lock")
32 machine.wait_until_succeeds("pgrep xterm")
33 machine.wait_for_text("alice@machine")
34 machine.screenshot("screen")