# HG changeset patch # User ihse # Date 1511789998 -3600 # Node ID 3934c59055ab14a1bf145a1fdac7545077a71a37 # Parent cd05c5ba480a0bf3605e590a2da2d5e4030933d8 Add support for optional JIB_JAR. diff -r cd05c5ba480a -r 3934c59055ab make/RunTestsPrebuilt.gmk --- a/make/RunTestsPrebuilt.gmk Mon Nov 27 14:31:44 2017 +0100 +++ b/make/RunTestsPrebuilt.gmk Mon Nov 27 14:39:58 2017 +0100 @@ -55,7 +55,19 @@ $1:=$2 endif else - ifneq ($$(findstring $$(LOG_LEVEL), debug trace), ) + ifneq ($$(findstring $$(LOG), debug trace), ) + $$(info Prebuilt variable $1=$$($1)) + endif + endif +endef + +define VerifyOptionalVariable + ifeq ($$($1), ) + ifneq ($$(findstring $$(LOG), debug trace), ) + $$(info Optional prebuilt variable $1 not provided) + endif + else + ifneq ($$(findstring $$(LOG), debug trace), ) $$(info Prebuilt variable $1=$$($1)) endif endif @@ -96,6 +108,10 @@ $(eval $(call VerifyVariable,MAKE,make)) $(eval $(call VerifyVariable,BASH,bash)) +# Check optional variables +$(eval $(call VerifyOptionalVariable,JIB_JAR)) + + # Now that we have verified that we have the required variables available, we # can include the prebuilt spec file ourselves, without an ephemeral spec # wrapper. This is required so we can include MakeBase which is needed for @@ -123,6 +139,7 @@ TEST_IMAGE_DIR := $(TEST_IMAGE_DIR), \ MAKE := $(MAKE), \ BASH := $(BASH), \ + JIB_JAR := $(JIB_JAR), \ include $(TOPDIR)/make/RunTestsPrebuiltSpec.gmk, \ $(CUSTOM_NEW_SPEC_LINE), \ )