buildMozillaMach: change tests to an attrset

This commit is contained in:
jopejoe1 2024-10-19 14:12:19 +02:00
parent 90e5a9338b
commit f3a4421f27
4 changed files with 9 additions and 7 deletions

View File

@ -18,7 +18,7 @@
, extraBuildInputs ? []
, extraMakeFlags ? []
, extraPassthru ? {}
, tests ? []
, tests ? {}
}:
let

View File

@ -27,7 +27,7 @@
license = lib.licenses.mpl20;
mainProgram = "firefox";
};
tests = [ nixosTests.firefox ];
tests = { inherit (nixosTests) firefox; };
updateScript = callPackage ./update.nix {
attrPath = "firefox-unwrapped";
};
@ -55,7 +55,7 @@
license = lib.licenses.mpl20;
mainProgram = "firefox";
};
tests = [ nixosTests.firefox-beta ];
tests = { inherit (nixosTests) firefox-beta; };
updateScript = callPackage ./update.nix {
attrPath = "firefox-beta-unwrapped";
versionSuffix = "b[0-9]*";
@ -86,7 +86,7 @@
license = lib.licenses.mpl20;
mainProgram = "firefox";
};
tests = [ nixosTests.firefox-devedition ];
tests = { inherit (nixosTests) firefox-devedition; };
updateScript = callPackage ./update.nix {
attrPath = "firefox-devedition-unwrapped";
versionSuffix = "b[0-9]*";
@ -115,7 +115,7 @@
license = lib.licenses.mpl20;
mainProgram = "firefox";
};
tests = [ nixosTests.firefox-esr-128 ];
tests = { inherit (nixosTests) firefox-esr-128; };
updateScript = callPackage ./update.nix {
attrPath = "firefox-esr-128-unwrapped";
versionPrefix = "128";

View File

@ -58,7 +58,9 @@
license = lib.licenses.mpl20;
mainProgram = "floorp";
};
tests = [ nixosTests.floorp ];
tests = {
inherit (nixosTests) floorp;
};
}).override
{
# Upstream build configuration can be found at

View File

@ -26,7 +26,7 @@ in
license = lib.licenses.mpl20;
mainProgram = "librewolf";
};
tests = [ nixosTests.librewolf ];
tests = { inherit (nixosTests) librewolf; };
updateScript = callPackage ./update.nix {
attrPath = "librewolf-unwrapped";
};