forked from mirrors/nixpkgs
Merge pull request #79335 from flokli/deprecate-perl-vm-tests
nixos/testing: add deprecation notice for Perl VM tests
This commit is contained in:
commit
aa4ba502d6
|
@ -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 ];
|
||||
|
|
|
@ -33,7 +33,7 @@ in lib.optionalAttrs stdenv.hostPlatform.isLinux (
|
|||
environment.systemPackages = [ pkgs.hello ];
|
||||
};
|
||||
testScript = ''
|
||||
$machine->succeed("hello");
|
||||
machine.succeed("hello")
|
||||
'';
|
||||
});
|
||||
|
||||
|
|
|
@ -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 = [(
|
||||
|
|
Loading…
Reference in a new issue