]> granicus.if.org Git - onig/commitdiff
fix #132: don't execute testp if ENABLE_POSIX_API == no
authorK.Kosako <kosako@sofnec.co.jp>
Mon, 4 Mar 2019 05:32:12 +0000 (14:32 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Mon, 4 Mar 2019 05:32:12 +0000 (14:32 +0900)
test/Makefile.am

index 4abb38d665edc98d8fc0b786023499755d8d1962..c623aa39d1c2f8d10bdc5447c65ae02ac52400b0 100644 (file)
@@ -5,7 +5,11 @@ AM_LDFLAGS  = -L$(prefix)/lib
 AM_CFLAGS = -Wall -Wno-invalid-source-encoding
 AM_CPPFLAGS = -I$(top_srcdir)/src -I$(includedir)
 
+if ENABLE_POSIX_API
 TESTS = test_utf8 testc testp testcu
+else
+TESTS = test_utf8 testc testcu
+endif
 
 check_PROGRAMS = $(TESTS)
 
@@ -14,8 +18,10 @@ test: test_uchar $(TESTS)
        @./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