]> granicus.if.org Git - onig/commitdiff
add target cov into Makefile.am
authorK.Kosako <kkosako0@gmail.com>
Sun, 17 Feb 2019 14:07:35 +0000 (23:07 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Thu, 28 Feb 2019 05:28:18 +0000 (14:28 +0900)
Makefile.am
test/Makefile.am

index 2f1a6e7235e5ab59c16c3f285e67db27828ecd51..91677443346a055ce4a5ad6d59271337de5145ae 100644 (file)
@@ -38,3 +38,6 @@ pkgconfig_DATA = oniguruma.pc
 
 all-test:
        cd test; make test
+
+cov:
+       make CFLAGS="--coverage"
index 2dde7d65bc11c708588cd7bc9cf8370c23264890..b7f6842a0268ad4084deb784ac0ce53ad77b7dfd 100644 (file)
@@ -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