summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2020-02-06 12:19:47 +0100
committerFlorian Klink <flokli@flokli.de>2020-02-09 23:53:59 +0100
commit0945178b3c6fd9e33002dd6e3c6f77dfca49565a (patch)
tree645f4c46c58632bc82a163f23e5337a7c707e158 /nixos
parentd3efeb79b7059cf38d1baae03f2104b7a28dda36 (diff)
downloadnixpkgs-0945178b3c6fd9e33002dd6e3c6f77dfca49565a.tar
nixpkgs-0945178b3c6fd9e33002dd6e3c6f77dfca49565a.tar.gz
nixpkgs-0945178b3c6fd9e33002dd6e3c6f77dfca49565a.tar.bz2
nixpkgs-0945178b3c6fd9e33002dd6e3c6f77dfca49565a.tar.lz
nixpkgs-0945178b3c6fd9e33002dd6e3c6f77dfca49565a.tar.xz
nixpkgs-0945178b3c6fd9e33002dd6e3c6f77dfca49565a.tar.zst
nixpkgs-0945178b3c6fd9e33002dd6e3c6f77dfca49565a.zip
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.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/lib/testing.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/lib/testing.nix b/nixos/lib/testing.nix
index ae8ecd6270c..c82abd1f990 100644
--- a/nixos/lib/testing.nix
+++ b/nixos/lib/testing.nix
@@ -19,7 +19,11 @@ in rec {
   inherit pkgs;
 
 
-  testDriver = stdenv.mkDerivation {
+  testDriver = lib.warn ''
+    Perl VM tests are deprecated and will be removed for 20.09.
+    Please update your tests to use the python test driver.
+    See https://github.com/NixOS/nixpkgs/pull/71684 for details.
+  '' stdenv.mkDerivation {
     name = "nixos-test-driver";
 
     buildInputs = [ makeWrapper perl ];