diff options
author | Paul Moore <paul@paul-moore.com> | 2021-08-02 23:44:58 -0400 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2021-08-12 12:30:20 -0400 |
commit | a415ef0938c2fc8139d45f89a722d132367077cc (patch) | |
tree | 30de85238f403b17ba556a9504ec4968fb19af34 /src | |
parent | 72609f73cd95749e27f50f2c5a52bacdbb1a3c5a (diff) | |
download | libseccomp-a415ef0938c2fc8139d45f89a722d132367077cc.tar.gz |
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 <tom.hromatka@oracle.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 7 |
1 files changed, 1 insertions, 6 deletions
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 <http://www.gnu.org/licenses>. # -@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} |