From: K.Kosako Date: Sun, 17 Feb 2019 14:07:35 +0000 (+0900) Subject: add target cov into Makefile.am X-Git-Tag: v6.9.2_rc1~65^2~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=369595415aaa78988dda488a4b075cc3d472d94b;p=onig add target cov into Makefile.am --- diff --git a/Makefile.am b/Makefile.am index 2f1a6e7..9167744 100644 --- a/Makefile.am +++ b/Makefile.am @@ -38,3 +38,6 @@ pkgconfig_DATA = oniguruma.pc all-test: cd test; make test + +cov: + make CFLAGS="--coverage" diff --git a/test/Makefile.am b/test/Makefile.am index 2dde7d6..b7f6842 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -37,3 +37,10 @@ testp_CFLAGS = -DPOSIX_TEST -Wall -Wno-invalid-source-encoding testcu_SOURCES = testu.c testcu_LDADD = $(lib_onig) + + +cov: + make CFLAGS="--coverage" test_utf8 + make CFLAGS="--coverage" testc + make CFLAGS="--coverage" testp + make CFLAGS="--coverage" testcu