mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
24 lines
618 B
Nix
24 lines
618 B
Nix
import ./make-test.nix ({ pkgs, ... }: {
|
|
name = "firefox";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ eelco chaoflow shlevy ];
|
|
};
|
|
|
|
machine =
|
|
{ config, pkgs, ... }:
|
|
|
|
{ imports = [ ./common/x11.nix ];
|
|
environment.systemPackages = [ pkgs.firefox ];
|
|
};
|
|
|
|
testScript =
|
|
''
|
|
$machine->waitForX;
|
|
$machine->execute("firefox file://${pkgs.valgrind.doc}/share/doc/valgrind/html/index.html &");
|
|
$machine->waitForWindow(qr/Valgrind/);
|
|
$machine->sleep(40); # wait until Firefox has finished loading the page
|
|
$machine->screenshot("screen");
|
|
'';
|
|
|
|
})
|