Skip to content
Snippets Groups Projects
Commit f8487fd6 authored by Petr Špaček's avatar Petr Špaček
Browse files

Merge branch 'full_check_integration' into 'master'

Update check-integration to run full test suite from Deckard

See merge request !220
parents a6f837df 2c57c8df
Branches
Tags
2 merge requests!254Knot Resolver 1.2.5,!220Update check-integration to run full test suite from Deckard
Pipeline #2143 passed with stages
in 2 minutes
......@@ -29,11 +29,8 @@ test:linux:amd64:
deckard:linux:amd64:
stage: test
before_script:
- git submodule update --init --recursive
script:
- mkdir -p tests/deckard/contrib/libswrap/obj
- MAKEFLAGS="-j $(nproc)" LD_LIBRARY_PATH=$(pwd)/.local/lib TESTS=sets/resolver DAEMON=$(pwd)/.local/sbin/kresd tests/deckard/kresd_run.sh
- PREFIX=$(pwd)/.local MAKEFLAGS="--jobs $(nproc) --keep-going" make check-integration
dependencies:
- build:linux:amd64
tags:
......
......@@ -9,11 +9,18 @@ endif
deckard_DIR := tests/deckard
TESTS := sets/resolver
TEMPLATE := template/kresd.j2
REAL_PREFIX=$(realpath $(PREFIX))
REAL_CURDIR=$(realpath $(CURDIR))
$(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!))
@mkdir -p $(deckard_DIR)/contrib/libswrap/obj
@$(MAKE) -s -C $(deckard_DIR) TESTS=$(TESTS) DAEMON=$(abspath daemon/kresd) TEMPLATE=$(TEMPLATE) DYLD_LIBRARY_PATH=$(DYLD_LIBRARY_PATH)
+TESTS=$(TESTS) DAEMON=$(abspath $(SBINDIR)/kresd) TEMPLATE=$(TEMPLATE) $(preload_syms) $(deckard_DIR)/kresd_run.sh
deckard: check-integration
# Targets
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment