Lines Matching +full:tests +full:- +full:coverage +full:- +full:reporting

3 AUTOMAKE_OPTIONS = subdir-objects
4 ACLOCAL_AMFLAGS = -I m4
6 ## This seems to have become necessary for building in non-source directory.
8 AM_CPPFLAGS="-I$(srcdir)/src"
20 doc/pcre2-config.txt \
25 doc/html/NON-AUTOTOOLS-BUILD.txt \
28 doc/html/pcre2-config.html \
127 doc/pcre2-config.1 \
229 # Unit tests you want to run when people type 'make check'.
230 # TESTS is for binary unit tests, check_SCRIPTS for script-based tests
232 TESTS = macro
237 # (non-user-visible) helper programs needed to build the libraries.
243 # and 'make maintainer-clean'. It turns out that the default is to delete only
251 pcre2fuzzcheck-8 \
252 pcre2fuzzcheck-16 \
253 pcre2fuzzcheck-32 \
272 NON-AUTOTOOLS-BUILD \
305 rm -f $@
306 cp -p src/pcre2.h $@
317 # SUPPORT_xxx. We also get rid of any gcc-specific visibility settings.
320 rm -rf $@ _generic
322 cs=$(srcdir)/config.status; test ! -f $$cs || mv -f $$cs $$cs.aside
324 cs=$(srcdir)/config.status; test ! -f $$cs.aside || mv -f $$cs.aside $$cs
325 test -f _generic/src/config.h
326 perl -n \
327 -e 'BEGIN{$$blank=0;}' \
328 -e 'if(/(.+?)\s*__attribute__ \(\(visibility/){print"$$1\n";$$blank=0;next;}' \
329 -e 'if(/LT_OBJDIR/){print"/* This is ignored unless you are using libtool. */\n";}' \
330 -e 'if(/^#define\s((?:HAVE|SUPPORT|STDC)_\w+)/){print"/* #undef $$1 */\n";$$blank=0;next;}' \
331 -e 'if(/^#define\s(?!PACKAGE|VERSION)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$blank=0;next;}' \
332 -e 'if(/^\s*$$/){print unless $$blank; $$blank=1;} else{print;$$blank=0;}' \
334 rm -rf _generic
346 bin_SCRIPTS = pcre2-config
348 ## ---------------------------------------------------------------
350 ## compiling PCRE2, if --enable-rebuild-chartables is specified. It is not an
351 ## installed program. The default (when --enable-rebuild-chartables is not
359 rm -f $@
363 rm -f $@
371 ## 8-, 16-, or 32-bit libraries are configured.
412 lib_LTLIBRARIES += libpcre2-8.la
418 -DPCRE2_CODE_UNIT_WIDTH=8 \
426 lib_LTLIBRARIES += libpcre2-16.la
432 -DPCRE2_CODE_UNIT_WIDTH=16 \
440 lib_LTLIBRARIES += libpcre2-32.la
446 -DPCRE2_CODE_UNIT_WIDTH=32 \
454 # pcre2_chartables.c, used unless --enable-rebuild-chartables is specified.
537 ## A version of the 8-bit library that has a POSIX API.
540 lib_LTLIBRARIES += libpcre2-posix.la
543 -DPCRE2_CODE_UNIT_WIDTH=8 @PCRE2POSIX_CFLAG@ \
546 libpcre2_posix_la_LIBADD = libpcre2-8.la
552 ## Build pcre2grep and optional fuzzer stuff if the 8-bit library is enabled
559 pcre2grep_LDADD += libpcre2-8.la
566 ## If fuzzer support is enabled, build a non-distributed library containing the
568 ## source but using -DSTANDALONE.
573 noinst_LIBRARIES += .libs/libpcre2-fuzzsupport.a
578 noinst_PROGRAMS += pcre2fuzzcheck-8
580 pcre2fuzzcheck_8_CFLAGS = -DSTANDALONE $(AM_CFLAGS)
581 pcre2fuzzcheck_8_LDADD = libpcre2-8.la
589 noinst_LIBRARIES += .libs/libpcre2-fuzzsupport-16.a
591 _libs_libpcre2_fuzzsupport_16_a_CFLAGS = $(AM_CFLAGS) -DPCRE2_CODE_UNIT_WIDTH=16
594 noinst_PROGRAMS += pcre2fuzzcheck-16
596 pcre2fuzzcheck_16_CFLAGS = -DSTANDALONE $(AM_CFLAGS) -DPCRE2_CODE_UNIT_WIDTH=16
597 pcre2fuzzcheck_16_LDADD = libpcre2-16.la
605 noinst_LIBRARIES += .libs/libpcre2-fuzzsupport-32.a
607 _libs_libpcre2_fuzzsupport_32_a_CFLAGS = $(AM_CFLAGS) -DPCRE2_CODE_UNIT_WIDTH=32
610 noinst_PROGRAMS += pcre2fuzzcheck-32
612 pcre2fuzzcheck_32_CFLAGS = -DSTANDALONE $(AM_CFLAGS) -DPCRE2_CODE_UNIT_WIDTH=32
613 pcre2fuzzcheck_32_LDADD = libpcre2-32.la
622 ## -------- Testing ----------
624 ## If the 8-bit library is enabled, build the POSIX wrapper test program and
628 TESTS += pcre2posix_test
632 pcre2posix_test_LDADD = libpcre2-posix.la libpcre2-8.la
638 TESTS += pcre2_jit_test
644 pcre2_jit_test_LDADD += libpcre2-8.la
647 pcre2_jit_test_LDADD += libpcre2-16.la
650 pcre2_jit_test_LDADD += libpcre2-32.la
669 pcre2test_LDADD += libpcre2-8.la libpcre2-posix.la
673 pcre2test_LDADD += libpcre2-16.la
677 pcre2test_LDADD += libpcre2-32.la
689 ## The main library tests. Each test is a binary plus a script that runs that
691 ## helpful. The two .bat files are for running the tests under Windows.
693 TESTS += RunTest
697 ## When the 8-bit library is configured, pcre2grep will have been built.
700 TESTS += RunGrepTest
769 testdata/testoutput8-16-2 \
770 testdata/testoutput8-16-3 \
771 testdata/testoutput8-16-4 \
772 testdata/testoutput8-32-2 \
773 testdata/testoutput8-32-3 \
774 testdata/testoutput8-32-4 \
775 testdata/testoutput8-8-2 \
776 testdata/testoutput8-8-3 \
777 testdata/testoutput8-8-4 \
780 testdata/testoutput11-16 \
781 testdata/testoutput11-32 \
782 testdata/testoutput12-16 \
783 testdata/testoutput12-32 \
785 testdata/testoutput14-16 \
786 testdata/testoutput14-32 \
787 testdata/testoutput14-8 \
795 testdata/testoutput22-16 \
796 testdata/testoutput22-32 \
797 testdata/testoutput22-8 \
803 testdata/testoutputheap-16 \
804 testdata/testoutputheap-32 \
805 testdata/testoutputheap-8 \
806 testdata/valgrind-jit.supp \
829 ## ------------ End of testing -------------
838 # We have .pc files for pkg-config users.
844 pkgconfig_DATA += libpcre2-8.pc libpcre2-posix.pc
848 pkgconfig_DATA += libpcre2-16.pc
852 pkgconfig_DATA += libpcre2-32.pc
856 # gcov/lcov code coverage reporting
858 # Coverage reporting targets:
860 # coverage: Create a coverage report from 'make check'
861 # coverage-baseline: Capture baseline coverage information
862 # coverage-reset: This zeros the coverage counters only
863 # coverage-report: This creates the coverage report only
864 # coverage-clean-report: This removes the generated coverage report
865 # without cleaning the coverage data itself
866 # coverage-clean-data: This removes the captured coverage data without
867 # removing the coverage files created at compile time (*.gcno)
868 # coverage-clean: This cleans all coverage data including the generated
869 # coverage report.
873 COVERAGE_NAME = $(PACKAGE)-$(VERSION)
874 COVERAGE_OUTPUT_FILE = $(COVERAGE_NAME)-coverage.info
875 COVERAGE_OUTPUT_DIR = $(COVERAGE_NAME)-coverage
881 coverage_quiet_0 = --quiet
883 coverage-check: all
884 -$(MAKE) $(AM_MAKEFLAGS) -k check
886 coverage-baseline:
888 --directory $(top_builddir) \
889 --output-file "$(COVERAGE_OUTPUT_FILE)" \
890 --capture \
891 --initial
893 coverage-report:
895 --directory $(top_builddir) \
896 --capture \
897 --output-file "$(COVERAGE_OUTPUT_FILE).tmp" \
898 --test-name "$(COVERAGE_TEST_NAME)" \
899 --no-checksum \
900 --compat-libtool \
903 --directory $(top_builddir) \
904 --output-file "$(COVERAGE_OUTPUT_FILE)" \
905 --remove "$(COVERAGE_OUTPUT_FILE).tmp" \
909 -@rm -f "$(COVERAGE_OUTPUT_FILE).tmp"
911 --prefix $(top_builddir) \
912 --output-directory "$(COVERAGE_OUTPUT_DIR)" \
913 --title "$(PACKAGE) $(VERSION) Code Coverage Report" \
914 --show-details "$(COVERAGE_OUTPUT_FILE)" \
915 --legend \
917 @echo "Code coverage report written to file://$(abs_builddir)/$(COVERAGE_OUTPUT_DIR)/index.html"
919 coverage-reset:
920 -$(LCOV) $(coverage_quiet) --zerocounters --directory $(top_builddir)
922 coverage-clean-report:
923 -rm -f "$(COVERAGE_OUTPUT_FILE)" "$(COVERAGE_OUTPUT_FILE).tmp"
924 -rm -rf "$(COVERAGE_OUTPUT_DIR)"
926 coverage-clean-data:
927 -find $(top_builddir) -name "*.gcda" -delete
929 coverage-clean: coverage-reset coverage-clean-report coverage-clean-data
930 -find $(top_builddir) -name "*.gcno" -delete
932 coverage-distclean: coverage-clean
934 coverage: coverage-reset coverage-baseline coverage-check coverage-report target
935 clean-local: coverage-clean
936 distclean-local: coverage-distclean
938 …PHONY: coverage coverage-baseline coverage-check coverage-report coverage-reset coverage-clean-rep…
940 # Without coverage support, still arrange for 'make distclean' to get rid of
941 # any coverage files that may have been left from a different configuration.
945 coverage: target
946 @echo "Configuring with --enable-coverage is required to generate code coverage report."
950 distclean-local:
951 rm -rf $(PACKAGE)-$(VERSION)-coverage*
958 cmake/COPYING-CMAKE-SCRIPTS \
962 cmake/pcre2-config-version.cmake.in \
963 cmake/pcre2-config.cmake.in \
965 config-cmake.h.in