2010-01-05 06:12:51 -08:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
machine =
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
2010-01-05 09:08:57 -08:00
|
|
|
{ require = [ ./common/x11.nix ];
|
2010-01-05 07:32:14 -08:00
|
|
|
environment.systemPackages = [ pkgs.firefox ];
|
2010-01-05 06:12:51 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
2010-01-05 15:59:29 -08:00
|
|
|
$machine->waitForX;
|
|
|
|
$machine->execute("firefox file://${pkgs.valgrind}/share/doc/valgrind/html/index.html &");
|
2011-01-10 06:41:16 -08:00
|
|
|
$machine->waitForWindow(qr/Valgrind/);
|
|
|
|
$machine->sleep(40); # wait until Firefox has finished loading the page
|
2010-01-05 06:12:51 -08:00
|
|
|
$machine->screenshot("screen");
|
|
|
|
'';
|
|
|
|
|
|
|
|
}
|