1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 11:02:05 +00:00

* Add a simple Firefox test.

svn path=/nixos/trunk/; revision=19234
This commit is contained in:
Eelco Dolstra 2010-01-05 14:12:51 +00:00
parent 9889d9f9f8
commit bc8445a89e
2 changed files with 30 additions and 0 deletions

View file

@ -24,6 +24,7 @@ in
{
kde4 = apply (import ./kde4.nix);
firefox = apply (import ./firefox.nix);
quake3 = apply (import ./quake3.nix);
subversion = apply (import ./subversion.nix);
trac = apply (import ./trac.nix);

29
tests/firefox.nix Normal file
View file

@ -0,0 +1,29 @@
{ pkgs, ... }:
{
machine =
{ config, pkgs, ... }:
{ services.xserver.enable = true;
environment.systemPackages = [ pkgs.icewm pkgs.firefox ];
};
testScript =
''
$machine->waitForFile("/tmp/.X11-unix/X0");
sleep 10;
$machine->execute("DISPLAY=:0.0 icewm &");
sleep 10;
$machine->execute("DISPLAY=:0.0 HOME=/root firefox file://${pkgs.valgrind}/share/doc/valgrind/html/index.html &");
sleep 30;
$machine->screenshot("screen");
'';
}