script:
- make -j2 install COVERAGE=1 PREFIX=${HOME}/.local
- ./daemon/kresd -h
- - make check COVERAGE=1 PREFIX=${HOME}/.local
+ - make -j2 check COVERAGE=1 PREFIX=${HOME}/.local
- make -j2 check-integration COVERAGE=1 PREFIX=${HOME}/.local
after_success:
- test $TRAVIS_OS_NAME = linux && coveralls -i lib -i daemon -x ".c" --gcov-options '\-lp'
$(eval $(call find_lib,cmocka))
$(eval $(call find_bin,doxygen))
$(eval $(call find_bin,sphinx-build))
-$(eval $(call find_bin,python))
$(eval $(call find_lib,libmemcached,1.0))
$(eval $(call find_lib,hiredis))
$(eval $(call find_lib,socket_wrapper))
endif
endif
-BUILD_CFLAGS += $(libknot_CFLAGS) $(libuv_CFLAGS) $(cmocka_CFLAGS) $(python_CFLAGS) $(lua_CFLAGS) $(libdnssec_CFLAGS)
+BUILD_CFLAGS += $(libknot_CFLAGS) $(libuv_CFLAGS) $(cmocka_CFLAGS) $(lua_CFLAGS) $(libdnssec_CFLAGS)
# Overview
info:
$(info [$(HAS_libmemcached)] libmemcached (modules/memcached))
$(info [$(HAS_hiredis)] hiredis (modules/redis))
$(info [$(HAS_cmocka)] cmocka (tests/unit))
- $(info [$(HAS_python)] Python (tests/integration))
$(info [$(HAS_socket_wrapper)] socket_wrapper (lib))
$(info )
LN := ln -s
XXD := ./scripts/embed.sh
INSTALL := install
-PYTHON := python
-Subproject commit 9650d08110c15a6ed80f072c877f160b12c1f351
+Subproject commit 604f256f2fdb7028368b875f493092bb9fd4ef13
+++ /dev/null
-# Config
-deckard_DIR := tests/deckard
-TESTS := sets/resolver
-TEMPLATE := template/kresd.j2
-
-# Synchronize submodules
-$(deckard_DIR):
- @git submodule update --init
-
-# Test using Deckard
-deckard: check-integration
-check-integration: $(deckard_DIR)
- make -C $(deckard_DIR) TESTS=$(TESTS) DAEMON=$(abspath daemon/kresd) TEMPLATE=$(TEMPLATE)
-
-.PHONY: deckard check-integration
-# Preload libraries
-preload_PATH := $(abspath contrib/libfaketime/src)
-ifeq ($(PLATFORM),Darwin)
- preload_LIBS := DYLD_FORCE_FLAT_NAMESPACE=1 \
- DYLD_LIBRARY_PATH="$(preload_PATH):${DYLD_LIBRARY_PATH}"
-else
- preload_LIBS := LD_LIBRARY_PATH="$(preload_PATH):${LD_LIBRARY_PATH}"
-endif
-
# Unit tests
ifeq ($(HAS_cmocka), yes)
include tests/unit.mk
$(warning cmocka not found, skipping unit tests)
endif
-# Integration tests
-ifeq ($(HAS_python)|$(HAS_socket_wrapper), yes|yes)
-include tests/integration.mk
-endif
+# Integration tests with Deckard
+deckard_DIR := tests/deckard
+TESTS := sets/resolver
+TEMPLATE := template/kresd.j2
+$(deckard_DIR)/Makefile:
+ @git submodule update --init
+check-integration: $(deckard_DIR)/Makefile
+ @make -C $(deckard_DIR) TESTS=$(TESTS) DAEMON=$(abspath daemon/kresd) TEMPLATE=$(TEMPLATE)
+deckard: check-integration
# Targets
tests: check-unit
tests-clean: $(foreach test,$(tests_BIN),$(test)-clean)
-.PHONY: tests tests-clean
+.PHONY: tests tests-clean check-integration deckard