From b727c4dce42159b1dc76e0a468d9233dbc680495 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0pa=C4=8Dek?= Date: Fri, 17 Mar 2017 11:03:31 +0100 Subject: [PATCH] check-integration: Warn if Deckard does not match commited version --- tests/tests.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/tests.mk b/tests/tests.mk index 98dddea1e..5ea07f6e4 100644 --- a/tests/tests.mk +++ b/tests/tests.mk @@ -15,6 +15,7 @@ endif deckard_DIR := tests/deckard TESTS := sets/resolver TEMPLATE := template/kresd.j2 +SUBMODULES_DIRTY := $(shell git submodule status --recursive | cut -c 1 | grep -q '[^ ]' && echo $$?) REAL_PREFIX=$(realpath $(PREFIX)) REAL_CURDIR=$(realpath $(CURDIR)) @@ -24,6 +25,7 @@ $(deckard_DIR)/Makefile: check-integration: $(deckard_DIR)/Makefile $(if $(findstring $(REAL_CURDIR),$(REAL_PREFIX)),, $(warning Warning: PREFIX does not point into source directory; testing the installed version!)) + $(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 -- 2.47.3