From 7a625e745346fbc87952a7af23ae6c88ade80ede Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Mon, 10 Feb 2020 18:01:47 +0100 Subject: nixos/tests/firefox: support running the test with the firefox ESR version Also adds this to the release jobset. --- nixos/release-combined.nix | 1 + nixos/tests/all-tests.nix | 1 + nixos/tests/firefox.nix | 6 ++++-- 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'nixos') diff --git a/nixos/release-combined.nix b/nixos/release-combined.nix index 641699818769..41f8c3d9d52f 100644 --- a/nixos/release-combined.nix +++ b/nixos/release-combined.nix @@ -66,6 +66,7 @@ in rec { (all nixos.tests.containers-ip) nixos.tests.chromium.x86_64-linux or [] (all nixos.tests.firefox) + (all nixos.tests.firefox-esr) (all nixos.tests.firewall) (all nixos.tests.fontconfig-default-fonts) (all nixos.tests.gnome3-xorg) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 33c6441dbc80..671f87a43944 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -88,6 +88,7 @@ in fancontrol = handleTest ./fancontrol.nix {}; ferm = handleTest ./ferm.nix {}; firefox = handleTest ./firefox.nix {}; + firefox-esr = handleTest ./firefox.nix { esr = true; }; firewall = handleTest ./firewall.nix {}; fish = handleTest ./fish.nix {}; flannel = handleTestOn ["x86_64-linux"] ./flannel.nix {}; diff --git a/nixos/tests/firefox.nix b/nixos/tests/firefox.nix index 56ddabbae771..7071baceba73 100644 --- a/nixos/tests/firefox.nix +++ b/nixos/tests/firefox.nix @@ -1,4 +1,4 @@ -import ./make-test-python.nix ({ pkgs, ... }: { +import ./make-test-python.nix ({ pkgs, esr ? false, ... }: { name = "firefox"; meta = with pkgs.stdenv.lib.maintainers; { maintainers = [ eelco shlevy ]; @@ -8,7 +8,9 @@ import ./make-test-python.nix ({ pkgs, ... }: { { pkgs, ... }: { imports = [ ./common/x11.nix ]; - environment.systemPackages = [ pkgs.firefox pkgs.xdotool ]; + environment.systemPackages = + (if esr then [ pkgs.firefox-esr ] else [ pkgs.firefox ]) + ++ [ pkgs.xdotool ]; }; testScript = '' -- cgit 1.4.1