From: Alan T. DeKok Date: Mon, 14 Dec 2020 22:37:51 +0000 (-0500) Subject: make the tests depend on the module being tested X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d779e7b99a00bfc16750ef5a78d81f259fb4bf32;p=thirdparty%2Ffreeradius-server.git make the tests depend on the module being tested --- diff --git a/src/tests/modules/all.mk b/src/tests/modules/all.mk index 7b9bbea65c8..f022a0e167a 100644 --- a/src/tests/modules/all.mk +++ b/src/tests/modules/all.mk @@ -65,6 +65,14 @@ $(foreach x,$(FILES),$(eval $(call MODULE_FILTER,$(firstword $(subst /, ,$x)),$x FILES := $(filter-out $(FILES_SKIP),$(FILES)) $(eval $(call TEST_BOOTSTRAP)) +# +# For each output file, find the rlm_*.la module which it needs, +# and make the output file depend on the library. That way if the +# module is re-built, then the tests are re-run. +# +$(foreach x, $(FILES), $(eval $$(OUTPUT.$(TEST))/$x: $(patsubst %,$(BUILD_DIR)/lib/rlm_%.la,$(patsubst %/,%,$(dir $x))))) + + # # Files in the output dir depend on the unit tests #