diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:55:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:55:53 +0000 |
commit | 3d0386f27ca66379acf50199e1d1298386eeeeb8 (patch) | |
tree | f87bd4a126b3a843858eb447e8fd5893c3ee3882 /tests/tests.mk | |
parent | Initial commit. (diff) | |
download | knot-resolver-3d0386f27ca66379acf50199e1d1298386eeeeb8.tar.xz knot-resolver-3d0386f27ca66379acf50199e1d1298386eeeeb8.zip |
Adding upstream version 3.2.1.upstream/3.2.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/tests.mk')
-rw-r--r-- | tests/tests.mk | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/tests.mk b/tests/tests.mk new file mode 100644 index 0000000..91edbb3 --- /dev/null +++ b/tests/tests.mk @@ -0,0 +1,33 @@ +# Platform-specific library injection +ifeq ($(PLATFORM),Darwin) + preload_syms := DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_LIBRARY_PATH="$(abspath lib):$(DYLD_LIBRARY_PATH)" +else + preload_syms := LD_LIBRARY_PATH="$(abspath lib):$(LD_LIBRARY_PATH)" +endif + +# Unit tests +ifeq ($(HAS_cmocka), yes) +include tests/unit.mk +else +$(warning cmocka not found, skipping unit tests) +endif + +CLEAN_DNSTAP := +ifeq ($(ENABLE_DNSTAP)|$(HAS_go),yes|yes) +include tests/dnstap/src/dnstap-test/dnstap.mk +CLEAN_DNSTAP := clean-dnstap +endif +tests-clean: $(foreach test,$(tests_BIN),$(test)-clean) mock_cmodule-clean $(CLEAN_DNSTAP) + +# Targets +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 + +include tests/config/test_config.mk +include tests/test_integration.mk + + +.PHONY: installcheck tests tests-clean |