From: Marek VavruĊĦa Date: Tue, 24 Nov 2015 21:59:34 +0000 (+0100) Subject: build: cleanup, no python deps X-Git-Tag: v1.0.0-beta3~87 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=baf334fe0f4d060a7644a4a0aa97414c494aa470;p=thirdparty%2Fknot-resolver.git build: cleanup, no python deps --- diff --git a/.travis.yml b/.travis.yml index 2554a46f5..0256d4587 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,7 @@ before_script: 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' diff --git a/Makefile b/Makefile index 047ba8ed4..946726083 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,6 @@ $(eval $(call find_alt,lua,luajit)) $(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)) @@ -43,7 +42,7 @@ ifneq (,$(findstring luajit, $(lua_LIBS))) 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: @@ -70,7 +69,6 @@ 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 ) diff --git a/config.mk b/config.mk index a59d86905..db7d462ba 100644 --- a/config.mk +++ b/config.mk @@ -19,4 +19,3 @@ RM := rm -f LN := ln -s XXD := ./scripts/embed.sh INSTALL := install -PYTHON := python diff --git a/tests/deckard b/tests/deckard index 9650d0811..604f256f2 160000 --- a/tests/deckard +++ b/tests/deckard @@ -1 +1 @@ -Subproject commit 9650d08110c15a6ed80f072c877f160b12c1f351 +Subproject commit 604f256f2fdb7028368b875f493092bb9fd4ef13 diff --git a/tests/integration.mk b/tests/integration.mk deleted file mode 100644 index 25b1539ed..000000000 --- a/tests/integration.mk +++ /dev/null @@ -1,15 +0,0 @@ -# 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 diff --git a/tests/tests.mk b/tests/tests.mk index 044cae309..a2a572378 100644 --- a/tests/tests.mk +++ b/tests/tests.mk @@ -1,12 +1,3 @@ -# 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 @@ -14,13 +5,18 @@ else $(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