6ae7ad3cc5
GitOrigin-RevId: a322b32e9d74fb476944ff6cfb55833dc69cfaaa
23 lines
701 B
Nix
23 lines
701 B
Nix
import ./make-test-python.nix ({ pkgs, ...} : {
|
|
name = "xterm";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ nequissimus ];
|
|
};
|
|
|
|
machine = { pkgs, ... }:
|
|
{
|
|
imports = [ ./common/x11.nix ];
|
|
services.xserver.desktopManager.xterm.enable = false;
|
|
};
|
|
|
|
testScript =
|
|
''
|
|
machine.wait_for_x()
|
|
machine.succeed("DISPLAY=:0 xterm -title testterm -class testterm -fullscreen &")
|
|
machine.sleep(2)
|
|
machine.send_chars("echo $XTERM_VERSION >> /tmp/xterm_version\n")
|
|
machine.wait_for_file("/tmp/xterm_version")
|
|
assert "${pkgs.xterm.version}" in machine.succeed("cat /tmp/xterm_version")
|
|
machine.screenshot("window")
|
|
'';
|
|
})
|