Parcourir la source

Add coverity target to corosync makefile.am

Allow a make coverity target for those developers with coverity tools
available to them.

Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalkeld@redhat.com>
(cherry picked from commit 899052484eaf3cee08d0a56b6579b73bf2ce99a0)
Steven Dake il y a 14 ans
Parent
commit
0a256952ed
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      Makefile.am

+ 5 - 0
Makefile.am

@@ -57,6 +57,11 @@ corosysconf_DATA	= conf/corosync.conf.example \
 SUBDIRS			= include lcr lib exec services tools test pkgconfig \
 			  man init conf
 
+coverity:
+	cov-build --dir=cov make
+	cov-analyze --dir cov
+	cov-format-errors --dir cov
+
 install-exec-local:
 	$(INSTALL) -d $(DESTDIR)/${COROSYSCONFDIR}/service.d
 	$(INSTALL) -d $(DESTDIR)/${COROSYSCONFDIR}/uidgid.d