From: Alan T. DeKok Date: Thu, 30 Apr 2020 01:59:22 +0000 (-0400) Subject: if there's no TLS, skip tests which need TLS X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14bcb2d782a4e028d86767a60be51ed0adbed7b8;p=thirdparty%2Ffreeradius-server.git if there's no TLS, skip tests which need TLS --- diff --git a/src/tests/unit/all.mk b/src/tests/unit/all.mk index 9f970394878..ac7dc4b361a 100644 --- a/src/tests/unit/all.mk +++ b/src/tests/unit/all.mk @@ -8,15 +8,29 @@ TEST := test.unit # -# The files are put here in order. Later tests need -# functionality from earlier test. +# Get all .txt files # -FILES := $(subst $(DIR)/,,$(call FIND_FILES_SUFFIX,$(DIR),*.txt)) +FILES := $(call FIND_FILES_SUFFIX,$(DIR),*.txt) + +# +# If we don't have OpenSSL, filter out tests which need TLS. +# +ifeq "$(AC_HAVE_OPENSSL_SSL_H)" "" +FILES := $(filter-out $(shell grep -l 'need-feature tls' $(FILES)),$(FILES)) +endif + +# +# Remove our directory prefix, which is needed by the bootstrap function. +# +FILES := $(subst $(DIR)/,,$(FILES)) # dict.txt - removed because the unit tests don't allow for protocol namespaces # command.txt - removed because commands like ":sql" are not parsed properly any more +# +# Bootstrap the test framework. +# $(eval $(call TEST_BOOTSTRAP)) #