]> granicus.if.org Git - libexpat/commitdiff
Makefile: Add target "qa"
authorSebastian Pipping <sebastian@pipping.org>
Fri, 6 May 2016 01:14:16 +0000 (03:14 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Fri, 6 May 2016 01:14:16 +0000 (03:14 +0200)
expat/Makefile.in

index 1a9e368d39aa6992f1b1c42749454dcf84dea6c1..44b43f9732f35c85e9abd8de390083c477f73aa0 100644 (file)
@@ -187,6 +187,18 @@ run-xmltest: xmlwf/xmlwf@EXEEXT@ tests/xmlconf
        tests/xmltest.sh 2>&1 | tee tests/xmltest.log
        diff -u tests/xmltest.log.expected tests/xmltest.log
 
+QA_CFLAGS := \
+       -fsanitize=address -g \
+       --coverage --no-inline \
+       -Wall -Wextra -std=c89 -pedantic \
+       -Wno-overlength-strings \
+
+.PHONY: qa
+qa:
+       CFLAGS="$(QA_CFLAGS)" ./configure
+       $(MAKE) clean all check run-xmltest
+       find -name '*.gcda' | sort | xargs gcov
+
 .SUFFIXES: .c .cpp .lo .@OBJEXT@
 
 .cpp.@OBJEXT@: