Loading pkgs/build-support/testers/default.nix +1 −1 Original line number Diff line number Diff line Loading @@ -72,7 +72,7 @@ # See https://nixos.org/manual/nixpkgs/unstable/#tester-testEqualArrayOrMap # or doc/build-helpers/testers.chapter.md # NOTE: Must be `import`-ed rather than `callPackage`-d to preserve the `override` attribute. testEqualArrayOrMap = import ./testEqualArrayOrMap/tester.nix { inherit lib stdenvNoCC; }; testEqualArrayOrMap = import ./testEqualArrayOrMap { inherit lib stdenvNoCC; }; # See https://nixos.org/manual/nixpkgs/unstable/#tester-testVersion # or doc/build-helpers/testers.chapter.md Loading pkgs/build-support/testers/test/default.nix +1 −1 Original line number Diff line number Diff line Loading @@ -357,5 +357,5 @@ lib.recurseIntoAttrs { ''; }; testEqualArrayOrMap = lib.recurseIntoAttrs (pkgs.callPackages ../testEqualArrayOrMap/tests.nix { }); testEqualArrayOrMap = pkgs.callPackages ../testEqualArrayOrMap/tests.nix { }; } pkgs/build-support/testers/testEqualArrayOrMap/tester.nix→pkgs/build-support/testers/testEqualArrayOrMap/default.nix +0 −0 File moved. View file pkgs/build-support/testers/testEqualArrayOrMap/tests.nix +7 −2 Original line number Diff line number Diff line Loading @@ -2,8 +2,13 @@ # `testers.testBuildFailure`. This is due to the fact that `testers.testBuildFailure` modifies the derivation such that # it produces an output containing the exit code, logs, and other things. Since `testers.runCommand` expects the empty # derivation, it produces a hash mismatch. { runCommand, testers, ... }: { lib, runCommand, testers, }: let inherit (lib.attrsets) recurseIntoAttrs; inherit (testers) testEqualArrayOrMap testBuildFailure; concatValuesArrayToActualArray = '' nixLog "appending all values in valuesArray to actualArray" Loading @@ -18,7 +23,7 @@ let done ''; in { recurseIntoAttrs { # NOTE: This particular test is used in the docs: # See https://nixos.org/manual/nixpkgs/unstable/#tester-testEqualArrayOrMap # or doc/build-helpers/testers.chapter.md Loading Loading
pkgs/build-support/testers/default.nix +1 −1 Original line number Diff line number Diff line Loading @@ -72,7 +72,7 @@ # See https://nixos.org/manual/nixpkgs/unstable/#tester-testEqualArrayOrMap # or doc/build-helpers/testers.chapter.md # NOTE: Must be `import`-ed rather than `callPackage`-d to preserve the `override` attribute. testEqualArrayOrMap = import ./testEqualArrayOrMap/tester.nix { inherit lib stdenvNoCC; }; testEqualArrayOrMap = import ./testEqualArrayOrMap { inherit lib stdenvNoCC; }; # See https://nixos.org/manual/nixpkgs/unstable/#tester-testVersion # or doc/build-helpers/testers.chapter.md Loading
pkgs/build-support/testers/test/default.nix +1 −1 Original line number Diff line number Diff line Loading @@ -357,5 +357,5 @@ lib.recurseIntoAttrs { ''; }; testEqualArrayOrMap = lib.recurseIntoAttrs (pkgs.callPackages ../testEqualArrayOrMap/tests.nix { }); testEqualArrayOrMap = pkgs.callPackages ../testEqualArrayOrMap/tests.nix { }; }
pkgs/build-support/testers/testEqualArrayOrMap/tester.nix→pkgs/build-support/testers/testEqualArrayOrMap/default.nix +0 −0 File moved. View file
pkgs/build-support/testers/testEqualArrayOrMap/tests.nix +7 −2 Original line number Diff line number Diff line Loading @@ -2,8 +2,13 @@ # `testers.testBuildFailure`. This is due to the fact that `testers.testBuildFailure` modifies the derivation such that # it produces an output containing the exit code, logs, and other things. Since `testers.runCommand` expects the empty # derivation, it produces a hash mismatch. { runCommand, testers, ... }: { lib, runCommand, testers, }: let inherit (lib.attrsets) recurseIntoAttrs; inherit (testers) testEqualArrayOrMap testBuildFailure; concatValuesArrayToActualArray = '' nixLog "appending all values in valuesArray to actualArray" Loading @@ -18,7 +23,7 @@ let done ''; in { recurseIntoAttrs { # NOTE: This particular test is used in the docs: # See https://nixos.org/manual/nixpkgs/unstable/#tester-testEqualArrayOrMap # or doc/build-helpers/testers.chapter.md Loading