2010-01-05 14:12:51 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
machine =
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
2010-01-05 17:08:57 +00:00
|
|
|
{ require = [ ./common/x11.nix ];
|
2010-01-05 15:32:14 +00:00
|
|
|
environment.systemPackages = [ pkgs.firefox ];
|
2010-01-05 14:12:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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");
|
|
|
|
'';
|
|
|
|
|
|
|
|
}
|