Skip to content

CTestCoverageCollectGCOV: Add TARBALL_COMPRESSION option

Background:

  • For large projects, the default bzip2 compression of gcov data was prohibitively expensively (could take several hours). Introduce options that allow the consumer to choose between file size and compression time.

Changes:

  • Add a new optional argument TARBALL_COMPRESSION for the macro ctest_coverage_collect_gcov. This option accepts the values OFF, GZIP, BZIP2, XZ, ZSTD, or FROM_EXT. The default value is BZIP2 to preserve prior behavior.
  • Extend test suit to cover new code paths.

Fixes: #20593 (closed)
Topic-rename: CTestCoverageCollectGCOV-compress-opts

Edited by Brad King

Merge request reports