.PHONY: units systemtests regress regress0 regress1 regress2 regress3
systemtests regress regress0 regress1 regress2 regress3: all
+(cd test && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1
+# We descend into "src" with the "check" target here to ensure that
+# the test prerequisites are all built.
units: all
+ (cd src && $(MAKE) $(AM_MAKEFLAGS) check)
+(cd test && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1
LCOV = lcov
# work...)
lcov: all
$(LCOV) -z -d .
+ $(MAKE) check -C src
+$(MAKE) check -C test/unit
$(LCOV) -c -d . -t cvc4_units -o cvc4-coverage-full.info
$(LCOV) -o cvc4-coverage.info -r cvc4-coverage-full.info $(LCOV_EXCLUDES)
lcov-all: all
$(LCOV) -z -d .
+ $(MAKE) check -C src
+$(MAKE) check -C test
$(LCOV) -c -d . -t cvc4_units -o cvc4-coverage-full.info
$(LCOV) -o cvc4-coverage.info -r cvc4-coverage-full.info $(LCOV_EXCLUDES)
echo; echo "=== Collecting coverage data from $$testtype unit tests ==="; \
echo $(LCOV) -z -d .; \
$(LCOV) -z -d . || exit 1; \
+ echo $(MAKE) check -C src || exit 1; \
+ $(MAKE) check -C src || exit 1; \
echo $(MAKE) check -C test/unit TEST_SUFFIX=_$$testtype || exit 1; \
$(MAKE) check -C test/unit TEST_SUFFIX=_$$testtype || exit 1; \
echo $(LCOV) -c -d . -t $$testtype -o cvc4-coverage-$$testtype-full.info || exit 1; \
test -e lib || ln -sfv ".$(libdir)" lib
test -e bin || ln -sfv ".$(bindir)" bin
-check test units systemtests regress: all
+# The descent into "src" with target "check" is to build check
+# prerequisites (e.g. CHECK_PROGRAMS, CHECK_LTLIBRARIES, ...).
+check test units:
+ (cd $(CURRENT_BUILD)/src && $(MAKE) check)
+ +(cd $(CURRENT_BUILD)/test && $(MAKE) $@)
+systemtests regress:
+(cd $(CURRENT_BUILD)/test && $(MAKE) $@)
units%:
+ (cd $(CURRENT_BUILD)/src && $(MAKE) check)
+(cd $(CURRENT_BUILD)/test && $(MAKE) units TEST_PREFIX=$(subst units:,,$@))
regress%: all
+(cd $(CURRENT_BUILD)/test && $(MAKE) $@)
lib_LTLIBRARIES = libcvc4.la
if HAVE_CXXTESTGEN
-noinst_LTLIBRARIES = libcvc4_noinst.la
+check_LTLIBRARIES = libcvc4_noinst.la
endif
libcvc4_la_LDFLAGS = -version-info $(LIBCVC4_VERSION)
lib_LTLIBRARIES = libcvc4parser.la
if HAVE_CXXTESTGEN
-noinst_LTLIBRARIES = libcvc4parser_noinst.la
+check_LTLIBRARIES = libcvc4parser_noinst.la
endif
libcvc4parser_la_LDFLAGS = $(ANTLR_LDFLAGS) \
@builddir@/smt2/libparsersmt2.la \
@builddir@/cvc/libparsercvc.la \
@builddir@/../lib/libreplacements.la \
- -L@builddir@/.. -lcvc4
+ @builddir@/../libcvc4_noinst.la
libcvc4parser_la_SOURCES = \
antlr_input.h \