fix coverage build

This commit is contained in:
Jörg Thalheim
2021-11-27 17:09:45 +01:00
parent b08bdf3f37
commit ea6035d072

View File

@@ -44,11 +44,16 @@
}; };
coverage = coverage =
pkgs.releaseTools.coverageAnalysis { (pkgs.releaseTools.coverageAnalysis {
name = "patchelf-coverage"; name = "patchelf-coverage";
src = self.hydraJobs.tarball; src = self.hydraJobs.tarball;
lcovFilter = ["*/tests/*"]; lcovFilter = ["*/tests/*"];
}; }).overrideAttrs (old: {
preCheck = ''
# coverage cflag breaks this target
NIX_CFLAGS_COMPILE=''${NIX_CFLAGS_COMPILE//--coverage} make -C tests phdr-corruption.so
'';
});
build = forAllSystems (system: nixpkgsFor.${system}.patchelf-new); build = forAllSystems (system: nixpkgsFor.${system}.patchelf-new);
build-sanitized = forAllSystems (system: nixpkgsFor.${system}.patchelf-new.overrideAttrs (old: { build-sanitized = forAllSystems (system: nixpkgsFor.${system}.patchelf-new.overrideAttrs (old: {