mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
* Add a simple Firefox test.
svn path=/nixos/trunk/; revision=19234
This commit is contained in:
parent
9889d9f9f8
commit
bc8445a89e
@ -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
29
tests/firefox.nix
Normal 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");
|
||||
'';
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user