]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
run the tests only if we have an sqlite3 command
authorAlan T. DeKok <aland@freeradius.org>
Thu, 27 May 2021 14:29:13 +0000 (10:29 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 27 May 2021 14:29:13 +0000 (10:29 -0400)
src/tests/sql_nas_table/all.mk

index 41d65ee3dfc325cba8785e8d3fe41dadd0967276..ddbfbe52195fb09460c21f0cda41b3f8585cacdf 100644 (file)
@@ -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