From: Alan T. DeKok Date: Wed, 9 Oct 2019 19:39:56 +0000 (-0400) Subject: use predefined TESTBIN instead of local magic X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c58886da9cf25f64bdbda27c180e4e787d6c8e90;p=thirdparty%2Ffreeradius-server.git use predefined TESTBIN instead of local magic --- diff --git a/src/tests/all.mk b/src/tests/all.mk index ccbd235e2ed..46f777ea701 100644 --- a/src/tests/all.mk +++ b/src/tests/all.mk @@ -15,18 +15,20 @@ raddb/test.conf: @echo '}' >> $@ @echo '$$INCLUDE radiusd.conf' >> $@ +$(info XXX $(GENERATED_CERT_FILES) ) + # # Run "radiusd -C", looking for errors. # # Only redirect STDOUT, which should contain details of why the test failed. # Don't molest STDERR as this may be used to receive output from a debugger. -$(BUILD_DIR)/tests/radiusd-c: raddb/test.conf ${BUILD_DIR}/bin/radiusd $(GENERATED_CERT_FILES) | build.raddb +radiusd-c $(BUILD_DIR)/tests/radiusd-c: raddb/test.conf ${BUILD_DIR}/bin/radiusd $(GENERATED_CERT_FILES) | $(BUILD_DIR)/tests build.raddb @printf "radiusd -C... " - @if ! FR_LIBRARY_PATH=${BUILD_DIR}/lib/local/.libs/ ${BUILD_DIR}/make/jlibtool --mode=execute ${BUILD_DIR}/bin/local/radiusd -XCMd ./raddb -n debug -D ./share/dictionary -n test > $(BUILD_DIR)/tests/radiusd.config.log; then \ + @if ! ${TESTBIN}/radiusd -XCMd ./raddb -n debug -D ./share/dictionary -n test > $(BUILD_DIR)/tests/radiusd.config.log; then \ rm -f raddb/test.conf; \ cat $(BUILD_DIR)/tests/radiusd.config.log; \ echo "fail"; \ - echo "FR_LIBRARY_PATH=${BUILD_DIR}/lib/local/.libs/ ${BUILD_DIR}/make/jlibtool --mode=execute ${BUILD_DIR}/bin/local/radiusd -XCMd ./raddb -n debug -D ./share/dictionary"; \ + echo "${TESTBIN}radiusd -XCMd ./raddb -n debug -D ./share/dictionary -n test"; \ exit 1; \ fi @rm -f raddb/test.conf