From a5a705b46dd32f93857e916311e3b71cae8be6b7 Mon Sep 17 00:00:00 2001 From: nijynot Date: Mon, 2 Dec 2019 01:57:43 +0100 Subject: [PATCH 1/2] lcov: filter depends from coverage report --- Makefile.am | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index deae2c1b5..0332e686d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -99,7 +99,7 @@ $(OSX_APP)/Contents/PkgInfo: $(OSX_APP)/Contents/Resources/empty.lproj: $(MKDIR_P) $(@D) - @touch $@ + @touch $@ $(OSX_APP)/Contents/Info.plist: $(OSX_PLIST) $(MKDIR_P) $(@D) @@ -189,7 +189,15 @@ $(BITCOIN_WALLET_BIN): FORCE $(MAKE) -C src $(@F) 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 "src/leveldb/" \ + -p "src/bench/" \ + -p "src/univalue" \ + -p "src/crypto/ctaes" \ + -p "src/secp256k1" \ + -p "depends" baseline.info: $(LCOV) -c -i -d $(abs_builddir)/src -o $@ @@ -321,4 +329,3 @@ clean-local: clean-docs 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 osx_volname dist/ dpi36.background.tiff dpi72.background.tiff - From f736f6920b160c9e7d7072500ddd0459c5181f86 Mon Sep 17 00:00:00 2001 From: nijynot Date: Mon, 9 Dec 2019 00:14:53 +0100 Subject: [PATCH 2/2] lcov: filter /usr/lib64 from coverage report --- Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.am b/Makefile.am index 0332e686d..f121c33b2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -192,6 +192,7 @@ if USE_LCOV LCOV_FILTER_PATTERN = \ -p "/usr/include/" \ -p "/usr/lib/" \ + -p "/usr/lib64/" \ -p "src/leveldb/" \ -p "src/bench/" \ -p "src/univalue" \