mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
bc68c2985c
connections. * In the root shell, source /etc/bashrc and set $HOME and $DISPLAY. svn path=/nixos/trunk/; revision=19247
22 lines
476 B
Nix
22 lines
476 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(/Valgrind.*Shiretoko/);
|
|
sleep 30; # wait until Firefox has finished loading the page
|
|
$machine->screenshot("screen");
|
|
'';
|
|
|
|
}
|