Commit c35b4e84 authored by Premysl Hruby's avatar Premysl Hruby Committed by antirez
Browse files

add support for generation of lcov coverage reports

parent 0934a4df
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment