nixos/testing: add deprecation notice for Perl VM tests
Most VM tests have been migrated to use the python test driver
(introduced in #71684), the migration is tracked in #72828 (which also
thankfully uncovered and fixed many currently broken tests)
While increasing the acceptance and adoption of NixOS integration tests
by using a more popular language, there was also nobody willing to do
larger refactors in the currently very convoluted test infrastructure.
We plan to remove the perl infrastructure between the 20.03 and 20.09
release, to be able to do these refactorings.
Some people might be using Perl tests in their internal CI, so print a
warning for 20.03, and give users time to move to the python testing
infrastructure.
commit0945178b3c6fd9e33002dd6e3c6f77dfca49565a
authorFlorian Klink <flokli@flokli.de>
dateThu 6 Feb 2020, 12:19 (7 years ago)
parentd3efeb7
nixos/lib/testing.nix+5−1
@@ -19,7 +19,11 @@ in rec {
1919 inherit pkgs;
2020
2121
22− testDriver = stdenv.mkDerivation {
22+ testDriver = lib.warn ''
23+ Perl VM tests are deprecated and will be removed for 20.09.
24+ Please update your tests to use the python test driver.
25+ See https://github.com/NixOS/nixpkgs/pull/71684 for details.
26+ '' stdenv.mkDerivation {
2327 name = "nixos-test-driver";
2428
2529 buildInputs = [ makeWrapper perl ];