tests_lua := \
hints
-check-config:
+check-config: check-install-precond
$(foreach test,$(tests_lua), \
@echo "config-test: $(test)" ;\
export TMP_RUNDIR=`mktemp -d` ;\
$(deckard_DIR)/Makefile:
@git submodule update --init --recursive
-check-integration: $(deckard_DIR)/Makefile
- $(if $(findstring $(REAL_CURDIR),$(REAL_PREFIX)),, $(warning Warning: PREFIX does not point into source directory; testing the installed version!))
+check-install-precond:
+ $(if $(findstring $(REAL_CURDIR),$(REAL_PREFIX)),, $(warning Warning: PREFIX does not point into source directory; testing version in $(PREFIX)!))
+
+# Deckard requires additional depedencies so it is not part of installcheck
+check-integration: check-install-precond $(deckard_DIR)/Makefile
$(if $(SUBMODULES_DIRTY), $(warning Warning: Git submodules are not up-to-date),)
@mkdir -p $(deckard_DIR)/contrib/libswrap/obj
+TESTS=$(TESTS) DAEMON=$(abspath $(SBINDIR)/kresd) TEMPLATE=$(TEMPLATE) $(preload_syms) $(deckard_DIR)/kresd_run.sh
deckard: check-integration
# Targets
-tests: check-unit check-config
+tests: check-unit
+# installcheck requires kresd to be installed in its final destination
+# (DESTDIR is not supported right now because module path gets hardcoded)
+installcheck: check-config
tests-clean: $(foreach test,$(tests_BIN),$(test)-clean) mock_cmodule-clean $(CLEAN_DNSTAP)
-.PHONY: tests tests-clean check-integration deckard
+.PHONY: check-integration deckard installcheck tests tests-clean