mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-12 04:42:36 -03:00
Merge #17647: lcov: filter depends from coverage reports
f736f6920b
lcov: filter /usr/lib64 from coverage report (nijynot)a5a705b46d
lcov: filter depends from coverage report (nijynot) Pull request description: If you build the binaries with the `depends` folder and then generate coverage reports with `make cov`, `depends` will be included in the coverage reports. Coverage of the dependencies are not that interesting and should be filtered. ACKs for top commit: laanwj: code review ACKf736f6920b
MarcoFalke: ACKf736f6920b
🐇 Tree-SHA512: 57c3e09f32e71523afff6ddc4f92bc35ab7b783f26f7a7380ae7556222954111cccce4c6dbc99305c424818f91e15bf5fe3532a7dca1daaa8ad71315d1dd857c
This commit is contained in:
commit
1ebf6402fc
1 changed files with 11 additions and 3 deletions
14
Makefile.am
14
Makefile.am
|
@ -99,7 +99,7 @@ $(OSX_APP)/Contents/PkgInfo:
|
||||||
|
|
||||||
$(OSX_APP)/Contents/Resources/empty.lproj:
|
$(OSX_APP)/Contents/Resources/empty.lproj:
|
||||||
$(MKDIR_P) $(@D)
|
$(MKDIR_P) $(@D)
|
||||||
@touch $@
|
@touch $@
|
||||||
|
|
||||||
$(OSX_APP)/Contents/Info.plist: $(OSX_PLIST)
|
$(OSX_APP)/Contents/Info.plist: $(OSX_PLIST)
|
||||||
$(MKDIR_P) $(@D)
|
$(MKDIR_P) $(@D)
|
||||||
|
@ -189,7 +189,16 @@ $(BITCOIN_WALLET_BIN): FORCE
|
||||||
$(MAKE) -C src $(@F)
|
$(MAKE) -C src $(@F)
|
||||||
|
|
||||||
if USE_LCOV
|
if USE_LCOV
|
||||||
LCOV_FILTER_PATTERN=-p "/usr/include/" -p "/usr/lib/" -p "src/leveldb/" -p "src/bench/" -p "src/univalue" -p "src/crypto/ctaes" -p "src/secp256k1"
|
LCOV_FILTER_PATTERN = \
|
||||||
|
-p "/usr/include/" \
|
||||||
|
-p "/usr/lib/" \
|
||||||
|
-p "/usr/lib64/" \
|
||||||
|
-p "src/leveldb/" \
|
||||||
|
-p "src/bench/" \
|
||||||
|
-p "src/univalue" \
|
||||||
|
-p "src/crypto/ctaes" \
|
||||||
|
-p "src/secp256k1" \
|
||||||
|
-p "depends"
|
||||||
|
|
||||||
baseline.info:
|
baseline.info:
|
||||||
$(LCOV) -c -i -d $(abs_builddir)/src -o $@
|
$(LCOV) -c -i -d $(abs_builddir)/src -o $@
|
||||||
|
@ -321,4 +330,3 @@ clean-local: clean-docs
|
||||||
rm -rf coverage_percent.txt test_bitcoin.coverage/ total.coverage/ test/tmp/ cache/ $(OSX_APP)
|
rm -rf coverage_percent.txt test_bitcoin.coverage/ total.coverage/ test/tmp/ cache/ $(OSX_APP)
|
||||||
rm -rf test/functional/__pycache__ test/functional/test_framework/__pycache__ test/cache share/rpcauth/__pycache__
|
rm -rf test/functional/__pycache__ test/functional/test_framework/__pycache__ test/cache share/rpcauth/__pycache__
|
||||||
rm -rf osx_volname dist/ dpi36.background.tiff dpi72.background.tiff
|
rm -rf osx_volname dist/ dpi36.background.tiff dpi72.background.tiff
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue