nixos/tests/php: Select the right versions of the tests depending on version
commitdb439da3cdc5d3162dd275a54dcbb6d94f7230cd
authorElis Hirwing <elis@hirwing.se>
dateSun 28 Feb 2021, 21:16 (6 years ago)
parent1216baa
nixos/tests/all-tests.nix+3
@@ -307,6 +307,9 @@ in
307307 pgjwt = handleTest ./pgjwt.nix {};
308308 pgmanage = handleTest ./pgmanage.nix {};
309309 php = handleTest ./php {};
310+ php73 = handleTest ./php { php = pkgs.php73; };
311+ php74 = handleTest ./php { php = pkgs.php74; };
312+ php80 = handleTest ./php { php = pkgs.php80; };
310313 pinnwand = handleTest ./pinnwand.nix {};
311314 plasma5 = handleTest ./plasma5.nix {};
312315 pleroma = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./pleroma.nix {};
pkgs/development/interpreters/php/generic.nix+2−1
@@ -112,7 +112,8 @@ let
112112 withExtensions = mkWithExtensions allArgs allExtensionFunctions;
113113 phpIni = "${phpWithExtensions}/lib/php.ini";
114114 unwrapped = php;
115− tests = nixosTests.php;
115+ # Select the right php tests for the php version
116+ tests = nixosTests."php${lib.strings.replaceStrings [ "." ] [ "" ] (lib.versions.majorMinor php.version)}";
116117 inherit (php-packages) extensions buildPecl;
117118 packages = php-packages.tools;
118119 meta = php.meta // {