diff options
author | Tim Steinbach <NeQuissimus@users.noreply.github.com> | 2020-11-17 12:15:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-17 12:15:19 -0500 |
commit | 08e6c4d00175aa8f026aea12e03b601787d69658 (patch) | |
tree | f302be90455e16cee3e15294c2b8ec29fa3f698e /nixos/tests/xterm.nix | |
parent | 098412567624d20f5e776aceb9fb3838159f950b (diff) | |
parent | 61e56265c24ed24527962f2b3d5d049983749c8c (diff) |
Merge pull request #104018 from NeQuissimus/xterm_update
xterm: 353 -> 362, add test, add update script
Diffstat (limited to 'nixos/tests/xterm.nix')
-rw-r--r-- | nixos/tests/xterm.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/nixos/tests/xterm.nix b/nixos/tests/xterm.nix new file mode 100644 index 000000000000..9f30543bf385 --- /dev/null +++ b/nixos/tests/xterm.nix @@ -0,0 +1,23 @@ +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") + ''; +}) |