mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 06:14:26 +03:00
9c1d3bfa9f
Signed-off-by: Shea Levy <shea@shealevy.com>
23 lines
476 B
Nix
23 lines
476 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
machine =
|
|
{ config, pkgs, ... }:
|
|
|
|
{ imports = [ ./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");
|
|
|
|
'';
|
|
|
|
}
|