diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2019-07-12 09:18:45 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2019-07-12 09:18:45 +0200 |
commit | ed7b90269a529d90d151969348e55347fae02c0d (patch) | |
tree | 7c72e5a49112a844a53a2c10ef1fda47867aee92 /test/Makefile.am | |
parent | 6cac1738b6aebf75b29d225775030d291319f9a2 (diff) | |
parent | 5c29b174a11e992dac68553f08645fe4a825c315 (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'test/Makefile.am')
-rw-r--r-- | test/Makefile.am | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index 2dde7d6..67b5d1e 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -3,19 +3,25 @@ lib_onig = ../src/libonig.la AM_LDFLAGS = -L$(prefix)/lib AM_CFLAGS = -Wall -Wno-invalid-source-encoding -AM_CPPFLAGS = -I$(top_srcdir)/src -I$(includedir) +AM_CPPFLAGS = -I$(top_srcdir)/src +if ENABLE_POSIX_API TESTS = test_utf8 testc testp testcu +else +TESTS = test_utf8 testc testcu +endif -check_PROGRAMS = test_utf8 testc testp testcu +check_PROGRAMS = $(TESTS) -test: test_uchar test_utf8 testc testp testcu +test: test_uchar $(TESTS) @echo "[Oniguruma API, UTF-8 check]" @./test_utf8 | grep RESULT @echo "[Oniguruma API, ASCII/EUC-JP check]" @./testc | grep RESULT +if ENABLE_POSIX_API @echo "[POSIX API, ASCII/EUC-JP check]" @./testp | grep RESULT +endif @echo "[Oniguruma API, UTF-16 check]" @./testcu | grep RESULT @@ -37,3 +43,10 @@ testp_CFLAGS = -DPOSIX_TEST -Wall -Wno-invalid-source-encoding testcu_SOURCES = testu.c testcu_LDADD = $(lib_onig) + + +gcov: + make CFLAGS="--coverage" test_utf8 + make CFLAGS="--coverage" testc + make CFLAGS="--coverage" testp + make CFLAGS="--coverage" testcu |