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