Skip to content

Commit

Permalink
Merge pull request #79335 from flokli/deprecate-perl-vm-tests
Browse files Browse the repository at this point in the history
nixos/testing: add deprecation notice for Perl VM tests
  • Loading branch information
worldofpeace authored Feb 10, 2020
2 parents 55ace3b + 0945178 commit aa4ba50
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion nixos/lib/testing.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/test/nixos-functions/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ in lib.optionalAttrs stdenv.hostPlatform.isLinux (
environment.systemPackages = [ pkgs.hello ];
};
testScript = ''
$machine->succeed("hello");
machine.succeed("hello")
'';
});

Expand Down
6 changes: 3 additions & 3 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 = [(
Expand Down

0 comments on commit aa4ba50

Please sign in to comment.