From e6a8c99eef42e7a4f942f64cae7d3ae8fc349e4d Mon Sep 17 00:00:00 2001 From: VivekSainiEQ Date: Wed, 25 Nov 2020 21:34:40 +0000 Subject: [PATCH] Updated 'make lcov' command to exclude external dependancies and generate final code coverage percentage Former-commit-id: eebd70aaa6bec0362ea90148174263fa6ffcc169 --- src/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index dbb18af65..8b3cfdb6b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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