eb6e1310b8
svn path=/nixos/trunk/; revision=29285
21 lines
475 B
Nix
21 lines
475 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
machine =
|
|
{ config, pkgs, ... }:
|
|
|
|
{ require = [ ./common/x11.nix ];
|
|
environment.systemPackages = [ pkgs.firefox ];
|
|
};
|
|
|
|
testScript =
|
|
''
|
|
$machine->waitForX;
|
|
$machine->execute("firefox file://${pkgs.valgrind}/share/doc/valgrind/html/index.html &");
|
|
$machine->waitForWindow(qr/Valgrind/);
|
|
$machine->sleep(40); # wait until Firefox has finished loading the page
|
|
$machine->screenshot("screen");
|
|
'';
|
|
|
|
}
|