Skip to content

Commit 24cbbbc

Browse files
Fix coverage remote
Remove boost and /nix/store stuff from the coverage report. I think there is a better way of fixing the boost stuf using geninfo_adjust_src_path, but I couldn't get it to work.
1 parent 4f1666e commit 24cbbbc

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

elements-lcov.patch

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- elements/Makefile.am
2+
+++ elements/Makefile.am
3+
@@ -188,6 +188,8 @@
4+
-p "/usr/include/" \
5+
-p "/usr/lib/" \
6+
-p "/usr/lib64/" \
7+
+ -p "/nix/store/" \
8+
+ -p "src/include/boost/" \
9+
-p "src/leveldb/" \
10+
-p "src/crc32c/" \
11+
-p "src/bench/" \

elements.nix

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ stdenv.mkDerivation rec {
3333
sha256 = "sha256-UNjYkEZBjGuhkwBxSkNXjBBcLQqoan/afCLhoR2lOY4=";
3434
};
3535

36+
patches = [ ./elements-lcov.patch ];
37+
3638
postPatch = optionals (doCheck)
3739
''
3840
patchShebangs contrib/filter-lcov.py

0 commit comments

Comments
 (0)