diff --git a/nixos/lib/testing.nix b/nixos/lib/testing.nix index ae8ecd6270ce..c82abd1f9900 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 ]; diff --git a/pkgs/test/nixos-functions/default.nix b/pkgs/test/nixos-functions/default.nix index 6dee0a27a79a..6a4f3164f929 100644 --- a/pkgs/test/nixos-functions/default.nix +++ b/pkgs/test/nixos-functions/default.nix @@ -33,7 +33,7 @@ in lib.optionalAttrs stdenv.hostPlatform.isLinux ( environment.systemPackages = [ pkgs.hello ]; }; testScript = '' - $machine->succeed("hello"); + machine.succeed("hello") ''; }); diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9c0238735d7b..a38f9cb297e9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25026,7 +25026,7 @@ in /* * Run a NixOS VM network test using this evaluation of Nixpkgs. * - * It is mostly equivalent to `import ./make-test.nix` from the + * It is mostly equivalent to `import ./make-test-python.nix` from the * NixOS manual[1], except that your `pkgs` will be used instead of * letting NixOS invoke Nixpkgs again. If a test machine needs to * set NixOS options under `nixpkgs`, it must set only the @@ -25052,11 +25052,11 @@ in */ nixosTest = let - /* The nixos/lib/testing.nix module, preapplied with arguments that + /* The nixos/lib/testing-python.nix module, preapplied with arguments that * make sense for this evaluation of Nixpkgs. */ nixosTesting = - (import ../../nixos/lib/testing.nix { + (import ../../nixos/lib/testing-python.nix { inherit (pkgs.stdenv.hostPlatform) system; inherit pkgs; extraConfigurations = [(