nixos/tests/php: Select the right versions of the tests depending on version

This commit is contained in:
Elis Hirwing
2021-02-28 21:16:08 +01:00
parent 1216baaee1
commit db439da3cd
2 changed files with 5 additions and 1 deletions

View File

@@ -112,7 +112,8 @@ let
withExtensions = mkWithExtensions allArgs allExtensionFunctions;
phpIni = "${phpWithExtensions}/lib/php.ini";
unwrapped = php;
tests = nixosTests.php;
# Select the right php tests for the php version
tests = nixosTests."php${lib.strings.replaceStrings [ "." ] [ "" ] (lib.versions.majorMinor php.version)}";
inherit (php-packages) extensions buildPecl;
packages = php-packages.tools;
meta = php.meta // {