Skip to content

Commit fa900d5

Browse files
committed
add make coverage
1 parent 2c5cf94 commit fa900d5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,10 @@ bench: example/bench.cpp timsort.hpp .bin
2727
$(CXX) -v
2828
./.bin/$@
2929

30+
coverage:
31+
make test CXXFLAGS="-coverage -O0"
32+
gcov test.gcda > /dev/null
33+
mv timsort.hpp.gcov coverage.txt
34+
rm -rf *.gc*
35+
3036
.PHONY: test bench

0 commit comments

Comments
 (0)