2020-11-19 00:13:47 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
|
|
|
name = "xterm";
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2020-11-19 00:13:47 +00:00
|
|
|
maintainers = [ nequissimus ];
|
|
|
|
};
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
nodes.machine = { pkgs, ... }:
|
2020-11-19 00:13:47 +00:00
|
|
|
{
|
|
|
|
imports = [ ./common/x11.nix ];
|
|
|
|
services.xserver.desktopManager.xterm.enable = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
|
|
|
machine.wait_for_x()
|
2021-12-06 16:07:01 +00:00
|
|
|
machine.succeed("DISPLAY=:0 xterm -title testterm -class testterm -fullscreen >&2 &")
|
2020-11-19 00:13:47 +00:00
|
|
|
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")
|
|
|
|
'';
|
|
|
|
})
|