Build all targets, except for CLI tools (mmcli, uml290), with special flags needed for collecting code coverage information when the build has been configured with --enable-code-coverage. Three new targets are available in the top build directory: - `check-code-coverage' runs the test suite and generates a code coverage report, - `code-coverage-capture' generates a code coverage report from already collected data, which can come in handy when one wants to see code paths touched by a particular test, - `code-coverage-clean' removes the collected coverage data and the generated reports.
32 lines
615 B
Makefile
32 lines
615 B
Makefile
include $(top_srcdir)/gtester.make
|
|
|
|
AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
|
|
AM_LDFLAGS = $(CODE_COVERAGE_LDFLAGS)
|
|
|
|
noinst_PROGRAMS = test-wmc
|
|
TEST_PROGS += $(noinst_PROGRAMS)
|
|
|
|
test_wmc_SOURCES = \
|
|
test-wmc-crc.c \
|
|
test-wmc-crc.h \
|
|
test-wmc-escaping.c \
|
|
test-wmc-escaping.h \
|
|
test-wmc-utils.c \
|
|
test-wmc-utils.h \
|
|
test-wmc-com.c \
|
|
test-wmc-com.h \
|
|
test-wmc.c
|
|
|
|
test_wmc_CPPFLAGS = \
|
|
$(MM_CFLAGS) \
|
|
-I$(top_srcdir)/libwmc/src \
|
|
-I$(top_srcdir)/src
|
|
|
|
test_wmc_LDADD = $(MM_LIBS)
|
|
|
|
if WMC_STANDALONE
|
|
test_wmc_LDADD += $(top_builddir)/src/libwmc.la
|
|
else
|
|
test_wmc_LDADD += $(top_builddir)/libwmc/src/libwmc.la
|
|
endif
|