mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 19:51:17 +00:00
bc238be01a
svn path=/nixos/trunk/; revision=19241
26 lines
439 B
Nix
26 lines
439 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
machine =
|
|
{ config, pkgs, ... }:
|
|
|
|
{ require = [ ./common/x11.nix ];
|
|
environment.systemPackages = [ pkgs.firefox ];
|
|
};
|
|
|
|
testScript =
|
|
''
|
|
$machine->waitForFile("/tmp/.X11-unix/X0");
|
|
|
|
sleep 10;
|
|
|
|
$machine->execute("DISPLAY=:0.0 HOME=/root firefox file://${pkgs.valgrind}/share/doc/valgrind/html/index.html &");
|
|
|
|
sleep 30;
|
|
|
|
$machine->screenshot("screen");
|
|
'';
|
|
|
|
}
|