summaryrefslogtreecommitdiff
path: root/test/Makefile.am
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2020-04-20 20:33:51 +0200
committerJörg Frings-Fürst <debian@jff.email>2020-04-20 20:33:51 +0200
commit6b986090d954dbac91bbb3c43ce7c3328c91a780 (patch)
tree34b34e41a3f7b7f4794c75be4482bb14695f36a9 /test/Makefile.am
parent4216de6a3336cbc6dddb572cb7e6ab6193bf3729 (diff)
New upstream version 6.9.5upstream/6.9.5
Diffstat (limited to 'test/Makefile.am')
-rw-r--r--test/Makefile.am26
1 files changed, 19 insertions, 7 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index 4d62568..f12eebe 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -6,9 +6,9 @@ AM_CFLAGS = -Wall -Wno-invalid-source-encoding
AM_CPPFLAGS = -I$(top_srcdir)/src
if ENABLE_POSIX_API
-TESTS = test_utf8 testc testp testcu test_regset
+TESTS = test_utf8 test_syntax testc testp testcu test_regset test_back
else
-TESTS = test_utf8 testc testcu test_regset
+TESTS = test_utf8 test_syntax testc testcu test_regset test_back
endif
check_PROGRAMS = $(TESTS)
@@ -16,10 +16,12 @@ check_PROGRAMS = $(TESTS)
test: test_uchar $(TESTS)
@echo "[Oniguruma API, UTF-8 check]"
@./test_utf8 | grep RESULT
- @echo "[Oniguruma API, ASCII/EUC-JP check]"
+ @echo "[Oniguruma API, SYNTAX check]"
+ @./test_syntax | grep RESULT
+ @echo "[Oniguruma API, EUC-JP check]"
@./testc | grep RESULT
if ENABLE_POSIX_API
- @echo "[POSIX API, ASCII/EUC-JP check]"
+ @echo "[POSIX API, UTF-8 check]"
@./testp | grep RESULT
endif
@echo "[Oniguruma API, UTF-16 check]"
@@ -27,6 +29,8 @@ endif
@echo ""
@echo "[Oniguruma API, regset check]"
@./test_regset
+ @echo "[Oniguruma API, backward search check]"
+ @./test_back | grep RESULT
test_uchar:
@echo "[UChar in oniguruma.h check]"
@@ -36,13 +40,14 @@ test_uchar:
test_utf8_SOURCES = test_utf8.c
test_utf8_LDADD = $(lib_onig)
+test_syntax_SOURCES = test_syntax.c
+test_syntax_LDADD = $(lib_onig)
+
testc_SOURCES = testc.c
testc_LDADD = $(lib_onig)
-testp_SOURCES = testc.c
+testp_SOURCES = testp.c
testp_LDADD = $(lib_onig)
-testp_CFLAGS = -DPOSIX_TEST -Wall -Wno-invalid-source-encoding
-
testcu_SOURCES = testu.c
testcu_LDADD = $(lib_onig)
@@ -50,10 +55,17 @@ testcu_LDADD = $(lib_onig)
test_regset_SOURCES = test_regset.c
test_regset_LDADD = $(lib_onig)
+test_back_SOURCES = test_back.c
+test_back_LDADD = $(lib_onig)
+
gcov:
make CFLAGS="--coverage" test_utf8
+ make CFLAGS="--coverage" test_syntax
make CFLAGS="--coverage" testc
+if ENABLE_POSIX_API
make CFLAGS="--coverage" testp
+endif
make CFLAGS="--coverage" testcu
make CFLAGS="--coverage" test_regset
+ make CFLAGS="--coverage" test_back