mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
add support for generation of lcov coverage reports
This commit is contained in:
parent
0934a4df93
commit
c35b4e845b
10
src/Makefile
10
src/Makefile
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user