OSDN Git Service

scripts/coverage: initial coverage comparison script
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 3 Apr 2023 13:49:10 +0000 (14:49 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 4 Apr 2023 14:16:29 +0000 (15:16 +0100)
commit899c3fc2dc66f6fd152322504eb321da4020ecd1
treed72c1a25d20e519c898956532e7b7f78852ccaeb
parent51a6dc9d394098e8f4141fad869a1ee9585f54f8
scripts/coverage: initial coverage comparison script

This is a very rough and ready first pass at comparing gcovr's json
output between two different runs. At the moment it will give you a
file level diff between two runs but hopefully it wont be too hard to
extend to give better insight.

After generating the coverage results you run with something like:

  ./scripts/coverage/compare_gcov_json.py \
    -a ./builds/gcov.config1/coverage.json \
    -b ./builds/gcov.config2/coverage.json

My hope is we can use this to remove some redundancy from testing as
well as evaluate if new tests are actually providing additional
coverage or just burning our precious CI time.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Cc: Kautuk Consul <kconsul@linux.vnet.ibm.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230403134920.2132362-2-alex.bennee@linaro.org>
MAINTAINERS
scripts/coverage/compare_gcov_json.py [new file with mode: 0755]