add support for generation of lcov coverage reports

This commit is contained in:
Premysl Hruby 2012-04-04 19:17:32 +02:00 committed by antirez
parent 0934a4df93
commit c35b4e845b

View File

@ -226,10 +226,10 @@ redis-check-aof: .make-prerequisites $(CHECKAOFOBJ)
%.o: %.c .make-prerequisites
$(QUIET_CC)$(CC) -c $(CFLAGS) $(DEBUG) $(COMPILE_TIME) -I../deps/lua/src $<
.PHONY: all clean distclean
.PHONY: all clean distclean lcov
clean:
rm -rf $(PRGNAME) $(BENCHPRGNAME) $(CLIPRGNAME) $(CHECKDUMPPRGNAME) $(CHECKAOFPRGNAME) *.o *.gcda *.gcno *.gcov
rm -rf $(PRGNAME) $(BENCHPRGNAME) $(CLIPRGNAME) $(CHECKDUMPPRGNAME) $(CHECKAOFPRGNAME) *.o *.gcda *.gcno *.gcov redis.info lcov-html
distclean: clean
-(cd ../deps && $(MAKE) distclean)
@ -241,6 +241,12 @@ dep:
test: redis-server redis-check-aof
@(cd ..; ./runtest)
lcov:
$(MAKE) clean gcov
@(set -e; cd ..; ./runtest --clients 1)
@geninfo -o redis.info .
@genhtml --legend -o lcov-html redis.info
bench:
./redis-benchmark