mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
30 lines
523 B
Nix
30 lines
523 B
Nix
|
{ pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
|
||
|
machine =
|
||
|
{ config, pkgs, ... }:
|
||
|
|
||
|
{ services.xserver.enable = true;
|
||
|
environment.systemPackages = [ pkgs.icewm pkgs.firefox ];
|
||
|
};
|
||
|
|
||
|
testScript =
|
||
|
''
|
||
|
$machine->waitForFile("/tmp/.X11-unix/X0");
|
||
|
|
||
|
sleep 10;
|
||
|
|
||
|
$machine->execute("DISPLAY=:0.0 icewm &");
|
||
|
|
||
|
sleep 10;
|
||
|
|
||
|
$machine->execute("DISPLAY=:0.0 HOME=/root firefox file://${pkgs.valgrind}/share/doc/valgrind/html/index.html &");
|
||
|
|
||
|
sleep 30;
|
||
|
|
||
|
$machine->screenshot("screen");
|
||
|
'';
|
||
|
|
||
|
}
|