From: Terry Burton Date: Wed, 16 Dec 2020 20:59:57 +0000 (+0000) Subject: CI: Package tests: Use the system's dictionary (#3805) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10397e89daa6d0f1ec22b673c03e4500acad07e3;p=thirdparty%2Ffreeradius-server.git CI: Package tests: Use the system's dictionary (#3805) --- diff --git a/scripts/ci/package-test.mk b/scripts/ci/package-test.mk index 1d0a8716a60..9a3261f4aa9 100644 --- a/scripts/ci/package-test.mk +++ b/scripts/ci/package-test.mk @@ -36,6 +36,7 @@ ALL_TGTS:=$(addprefix rlm_eap_,$(notdir $(subst -,_,$(patsubst %.conf,%.la,$(wil RADIUSD_BIN:=$(shell which radiusd || which freeradius) PORT:=1812 SECRET:=testing123 +DICT_PATH:=/usr/share/freeradius/dictionary/ # # We assume a preinstalled version of eapol_test diff --git a/src/tests/eapol_test/all.mk b/src/tests/eapol_test/all.mk index c74d5f96104..7071c1b00c5 100644 --- a/src/tests/eapol_test/all.mk +++ b/src/tests/eapol_test/all.mk @@ -36,6 +36,7 @@ CONFIG_PATH := $(TEST_PATH)/config RADIUS_LOG := $(OUTPUT)/radiusd.log GDB_LOG := $(OUTPUT)/gdb.log TEST_BIN := $(BUILD_DIR)/bin/local +DICT_PATH := $(if $(DICT_PATH),$(DICT_PATH),$(top_srcdir)/share/dictionary) # # We use the stock raddb modules to help detect typos and other issues diff --git a/src/tests/radiusd.mk b/src/tests/radiusd.mk index e7ae4484701..240a89819cf 100644 --- a/src/tests/radiusd.mk +++ b/src/tests/radiusd.mk @@ -91,7 +91,7 @@ $(TEST).radiusd_stop: | ${2} # Start radiusd instance # ${2}/radiusd.pid: ${2} - $$(eval RADIUSD_RUN := TESTDIR=$(DIR) OUTPUT=$(OUTPUT) TEST_PORT=$(PORT) $$(RADIUSD_BIN) -Pxxx -d $(DIR)/config -n ${1} -D share/dictionary/ -l ${2}/radiusd.log) + $$(eval RADIUSD_RUN := TESTDIR=$(DIR) OUTPUT=$(OUTPUT) TEST_PORT=$(PORT) $$(RADIUSD_BIN) -Pxxx -d $(DIR)/config -n ${1} -D $(DICT_PATH) -l ${2}/radiusd.log) ${Q}rm -f ${2}/radiusd.log ${Q}if ! $$(RADIUSD_RUN); then \ echo "FAILED STARTING RADIUSD"; \