mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 17:46:29 +09:00
parent
7c1bc83f56
commit
20ad3329fe
2 changed files with 21 additions and 25 deletions
|
@ -1296,7 +1296,7 @@ in {
|
||||||
xrdp-with-audio-pulseaudio = handleTest ./xrdp-with-audio-pulseaudio.nix {};
|
xrdp-with-audio-pulseaudio = handleTest ./xrdp-with-audio-pulseaudio.nix {};
|
||||||
xscreensaver = handleTest ./xscreensaver.nix {};
|
xscreensaver = handleTest ./xscreensaver.nix {};
|
||||||
xss-lock = handleTest ./xss-lock.nix {};
|
xss-lock = handleTest ./xss-lock.nix {};
|
||||||
xterm = handleTest ./xterm.nix {};
|
xterm = runTest ./xterm.nix;
|
||||||
xxh = runTest ./xxh.nix;
|
xxh = runTest ./xxh.nix;
|
||||||
yabar = runTest ./yabar.nix;
|
yabar = runTest ./yabar.nix;
|
||||||
ydotool = handleTest ./ydotool.nix {};
|
ydotool = handleTest ./ydotool.nix {};
|
||||||
|
|
|
@ -1,26 +1,22 @@
|
||||||
import ./make-test-python.nix (
|
{ pkgs, ... }:
|
||||||
{ pkgs, ... }:
|
{
|
||||||
{
|
name = "xterm";
|
||||||
name = "xterm";
|
meta = with pkgs.lib.maintainers; {
|
||||||
meta = with pkgs.lib.maintainers; {
|
maintainers = [ nequissimus ];
|
||||||
maintainers = [ nequissimus ];
|
};
|
||||||
};
|
|
||||||
|
|
||||||
nodes.machine =
|
nodes.machine = {
|
||||||
{ pkgs, ... }:
|
imports = [ ./common/x11.nix ];
|
||||||
{
|
services.xserver.desktopManager.xterm.enable = false;
|
||||||
imports = [ ./common/x11.nix ];
|
};
|
||||||
services.xserver.desktopManager.xterm.enable = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
machine.wait_for_x()
|
machine.wait_for_x()
|
||||||
machine.succeed("DISPLAY=:0 xterm -title testterm -class testterm -fullscreen >&2 &")
|
machine.succeed("DISPLAY=:0 xterm -title testterm -class testterm -fullscreen >&2 &")
|
||||||
machine.sleep(2)
|
machine.sleep(2)
|
||||||
machine.send_chars("echo $XTERM_VERSION >> /tmp/xterm_version\n")
|
machine.send_chars("echo $XTERM_VERSION >> /tmp/xterm_version\n")
|
||||||
machine.wait_for_file("/tmp/xterm_version")
|
machine.wait_for_file("/tmp/xterm_version")
|
||||||
assert "${pkgs.xterm.version}" in machine.succeed("cat /tmp/xterm_version")
|
assert "${pkgs.xterm.version}" in machine.succeed("cat /tmp/xterm_version")
|
||||||
machine.screenshot("window")
|
machine.screenshot("window")
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue