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