From: Alan T. DeKok Date: Thu, 27 May 2021 14:29:13 +0000 (-0400) Subject: run the tests only if we have an sqlite3 command X-Git-Tag: release_3_0_23~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cb4df1d89936cf6373a3de26b842b04740bb031;p=thirdparty%2Ffreeradius-server.git run the tests only if we have an sqlite3 command --- diff --git a/src/tests/sql_nas_table/all.mk b/src/tests/sql_nas_table/all.mk index 41d65ee3dfc..ddbfbe52195 100644 --- a/src/tests/sql_nas_table/all.mk +++ b/src/tests/sql_nas_table/all.mk @@ -8,6 +8,12 @@ TEST := test.sql_nas_table FILES := $(subst $(DIR)/,,$(wildcard $(DIR)/*.txt)) +SQLITE3 := $(shell which sqlite3) +ifneq "$(SQLITE3)" "" + +# +# Run the full tests +# $(eval $(call TEST_BOOTSTRAP)) # @@ -58,3 +64,9 @@ $(OUTPUT)/%: $(DIR)/% | $(TEST).radiusd_kill sql_nas_table_bootstrap $(TEST).rad $(TEST): $(Q)$(MAKE) --no-print-directory $@.radiusd_stop @touch $(BUILD_DIR)/tests/$@ +else +# +# No sqlite3 command, don't do anything. +# +$(TEST): +endif