From a415ef0938c2fc8139d45f89a722d132367077cc Mon Sep 17 00:00:00 2001 From: Paul Moore Date: Mon, 2 Aug 2021 23:44:58 -0400 Subject: build: reorganize the code coverage targets This is arguably the way it should have been done in the beginning but TravisCI and Coveralls masked the need for proper standalone code coverage tests. With this change simply enabling code coverage during ./configure and following with a code coverage build should generate proper gcov/lcov data and a local HTML report, example: % ./configure --enable-code-coverage % make check-code-coverage Acked-by: Tom Hromatka Signed-off-by: Paul Moore --- src/Makefile.am | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index 7b59810..04e7ba5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -16,10 +16,6 @@ # along with this library; if not, see . # -@CODE_COVERAGE_RULES@ - -CODE_COVERAGE_IGNORE_PATTERN = /usr/include/bits/* */arch-syscall-check.c - SUBDIRS = . if ENABLE_PYTHON SUBDIRS += python @@ -62,8 +58,7 @@ lib_LTLIBRARIES = libseccomp.la arch_syscall_dump_SOURCES = arch-syscall-dump.c ${SOURCES_ALL} arch_syscall_check_SOURCES = arch-syscall-check.c ${SOURCES_ALL} -arch_syscall_check_CFLAGS = ${AM_CFLAGS} ${CODE_COVERAGE_CFLAGS} -arch_syscall_check_LDFLAGS = ${CODE_COVERAGE_LDFLAGS} +arch_syscall_check_CFLAGS = ${AM_CFLAGS} libseccomp_la_SOURCES = ${SOURCES_ALL} libseccomp_la_CPPFLAGS = ${AM_CPPFLAGS} ${CODE_COVERAGE_CPPFLAGS} -- cgit v1.2.1