query
On this page

testBuildFailure

pkgs.testers.testBuildFailure

Docs pulled from | This Revision | about 2 hours ago


or doc/build-helpers/testers.chapter.md


Noogle detected

Implementation

The following is the current implementation of this function.

testBuildFailure =
    drv:
    drv.overrideAttrs (orig: {
      builder = buildPackages.bash;
      args = [
        (replaceVars ./expect-failure.sh {
          coreutils = buildPackages.coreutils;
          vars = lib.toShellVars {
            outputNames = (orig.outputs or [ "out" ]);
          };
        })
        orig.realBuilder or stdenv.shell
      ]
      ++ orig.args or [
        "-e"
        ../../stdenv/generic/source-stdenv.sh
        (orig.builder or ../../stdenv/generic/default-builder.sh)
      ];
    });