Page MenuHomePhabricator

tests: Add script checking for deterministic line coverage
AbandonedPublic

Authored by PiRK on Fri, Sep 3, 07:04.

Details

Reviewers
None
Group Reviewers
Restricted Project
Maniphest Tasks
Restricted Maniphest Task
Summary

This is a backport of core#15296

Depends on D10029

Test Plan

Install gcov and gcovr.

cmake .. -GNinja  -DENABLE_COVERAGE=ON
ninja test_bitcoin
../contrib/devtools/test_deterministic_coverage.sh

To test it with clang, modify the GCOV_EXECUTABLE variable to "llvm-cov-13 gcov" (adjust the number to your clang version).

cmake .. -GNinja  -DENABLE_COVERAGE=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
ninja test_bitcoin
../contrib/devtools/test_deterministic_coverage.sh

Diff Detail

Repository
rABC Bitcoin ABC
Branch
pr15296
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 16532
Build 32926: Build Diff
Build 32925: arc lint + arc unit