Updated 'make lcov' command to exclude external dependancies and generate final code coverage percentage

Former-commit-id: eebd70aaa6bec0362ea90148174263fa6ffcc169
This commit is contained in:
VivekSainiEQ 2020-11-25 21:34:40 +00:00 committed by John Sully
parent 67fcffe545
commit e6a8c99eef

View File

@ -401,8 +401,9 @@ check: test
lcov:
$(MAKE) gcov
@(set -e; cd ..; ./runtest --clients 1)
@geninfo -o redis.info .
@genhtml --legend -o lcov-html redis.info
@geninfo -o KeyDB.info --no-external .
@genhtml --legend -o lcov-html KeyDB.info
@genhtml --legend -o lcov-html KeyDB.info | grep lines | awk '{print $2;}' | sed 's/%//g'
test-sds: sds.c sds.h
$(REDIS_CC) sds.c zmalloc.cpp -DSDS_TEST_MAIN $(FINAL_LIBS) -o /tmp/sds_test