From 369595415aaa78988dda488a4b075cc3d472d94b Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Sun, 17 Feb 2019 23:07:35 +0900 Subject: [PATCH] add target cov into Makefile.am --- Makefile.am | 3 +++ test/Makefile.am | 7 +++++++ 2 files changed, 10 insertions(+) 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 -- 2.40.0