Update Makefile.am for compiling with gcov. Add Script Run tests to improve

coverage.
This commit is contained in:
ph10 2018-10-14 15:56:36 +00:00
parent baf6848e3e
commit 44306c4fe9
3 changed files with 28 additions and 0 deletions

View File

@ -531,6 +531,10 @@ noinst_PROGRAMS += pcre2fuzzcheck
pcre2fuzzcheck_SOURCES = src/pcre2_fuzzsupport.c
pcre2fuzzcheck_CFLAGS = -DSTANDALONE $(AM_CFLAGS)
pcre2fuzzcheck_LDADD = libpcre2-8.la
if WITH_GCOV
pcre2fuzzcheck_CFLAGS += $(GCOV_CFLAGS)
pcre2fuzzcheck_LDADD += $(GCOV_LIBS)
endif # WITH_GCOV
endif # WITH FUZZ_SUPPORT
endif # WITH_PCRE2_8

8
testdata/testinput4 vendored
View File

@ -2434,6 +2434,14 @@
\x{1cf7}\x{0993} Common-extend-Beng Bengali
A\x{1abe}BC Test enclosing mark
\x{0370}\x{1abe}\x{0371} Which can occur with any script (Greek here)
\x{3001}\x{adf9}\x{3001} [.. Hangul ..] Hangul [.. Hangul ..]
\x{3400}\x{3001}XXX Han [Han etc.]
\x{3400}\x{1cd5} Han [Bengali Devanagari]
\x{ac01}\x{3400} Hangul [.. Hangul ..]
\x{ac01}\x{1cd5} Hangul [Bengali Devanagari]
\x{102e0}\x{06d4}\x{1ee4d} [Arabic Coptic] [Arab Rohingya] Arabic
\x{102e0}\x{06d4}\x{2cc9} [Arabic Coptic] [Arab Rohingya] Coptic
\x{102e0}\x{06d4}\x{10d30} [Arabic Coptic] [Arab Rohingya] Rohingya
# Test loop breaking for empty string match

16
testdata/testoutput4 vendored
View File

@ -3940,6 +3940,22 @@ No match
0: A\x{1abe}BC
\x{0370}\x{1abe}\x{0371} Which can occur with any script (Greek here)
0: \x{370}\x{1abe}\x{371}
\x{3001}\x{adf9}\x{3001} [.. Hangul ..] Hangul [.. Hangul ..]
0: \x{3001}\x{adf9}\x{3001}
\x{3400}\x{3001}XXX Han [Han etc.]
0: \x{3400}\x{3001}
\x{3400}\x{1cd5} Han [Bengali Devanagari]
0: \x{3400}
\x{ac01}\x{3400} Hangul [.. Hangul ..]
0: \x{ac01}\x{3400}
\x{ac01}\x{1cd5} Hangul [Bengali Devanagari]
0: \x{ac01}
\x{102e0}\x{06d4}\x{1ee4d} [Arabic Coptic] [Arab Rohingya] Arabic
0: \x{102e0}\x{6d4}\x{1ee4d}
\x{102e0}\x{06d4}\x{2cc9} [Arabic Coptic] [Arab Rohingya] Coptic
0: \x{102e0}\x{6d4}
\x{102e0}\x{06d4}\x{10d30} [Arabic Coptic] [Arab Rohingya] Rohingya
0: \x{102e0}\x{6d4}
# Test loop breaking for empty string match