From abb3fee1f864f55c1cde431d55006947d4fcb247 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Sat, 6 Oct 2018 21:56:48 +0100 Subject: [PATCH] Coverage reporting for whole broker. --- Makefile | 3 +++ client/Makefile | 2 +- lib/Makefile | 2 +- src/Makefile | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c2c2bcf8..9a9f5562 100644 --- a/Makefile +++ b/Makefile @@ -81,3 +81,6 @@ copy : sign cd dist; scp *.html mosquitto:site/mosquitto.org/man/ scp ChangeLog.txt mosquitto:site/mosquitto.org/ +coverage : + lcov --capture --directory . --output-file coverage.info + genhtml coverage.info --output-directory out diff --git a/client/Makefile b/client/Makefile index 844bc6e0..02ac6087 100644 --- a/client/Makefile +++ b/client/Makefile @@ -50,4 +50,4 @@ uninstall : reallyclean : clean clean : - -rm -f *.o mosquitto_pub mosquitto_sub + -rm -f *.o mosquitto_pub mosquitto_sub *.gcda *.gcno diff --git a/lib/Makefile b/lib/Makefile index b4b4e4d5..d9304c32 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -72,7 +72,7 @@ uninstall : reallyclean : clean clean : - -rm -f *.o libmosquitto.so.${SOVERSION} libmosquitto.so libmosquitto.a + -rm -f *.o libmosquitto.so.${SOVERSION} libmosquitto.so libmosquitto.a *.gcno *.gcda $(MAKE) -C cpp clean libmosquitto.so.${SOVERSION} : ${MOSQ_OBJS} diff --git a/src/Makefile b/src/Makefile index f981e2e2..e9bf16a1 100644 --- a/src/Makefile +++ b/src/Makefile @@ -231,7 +231,7 @@ uninstall : -rm -f "${DESTDIR}${prefix}/bin/mosquitto_passwd" clean : - -rm -f *.o mosquitto mosquitto_passwd + -rm -f *.o mosquitto mosquitto_passwd *.gcda *.gcno reallyclean : clean -rm -rf *.orig *.db