]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
depend on the proto_detail libraries, too
authorAlan T. DeKok <aland@freeradius.org>
Fri, 21 Apr 2023 12:31:58 +0000 (08:31 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 21 Apr 2023 12:38:28 +0000 (08:38 -0400)
and only succeed if the test succeeds

src/tests/detail/all.mk

index 83df36225a6b1c2d5b29bebe04e9990b0dbd2331..53b4db40d9465fa8f394a0f290c44caaea7e5618 100644 (file)
@@ -15,15 +15,16 @@ $(eval $(call TEST_BOOTSTRAP))
 #      so we copy it manually to the output directory (always), and then
 #      put the server logs into the output file.
 #
-$(OUTPUT)/%: $(DIR)/%
+$(OUTPUT)/%: $(DIR)/% $(addprefix ${BUILD_DIR}/lib/,proto_detail.la proto_detail_file.la proto_detail_work.la)
        $(eval DIR := $(dir $<))
        ${Q}echo "DETAIL $(notdir $<)"
        ${Q}cp $< $(dir $@)/detail.txt
-       ${Q}if ! $(TEST_BIN)/radiusd -d $(DIR)/config -D ${top_srcdir}/share/dictionary -X > $@; then \
-               tail $@; \
+       ${Q}if ! $(TEST_BIN)/radiusd -d $(DIR)/config -D ${top_srcdir}/share/dictionary -X > $@.log; then \
+               tail $@.log; \
                echo "cp $< $(dir $@)/detail.txt; $(TEST_BIN)/radiusd -d $(DIR)/config -D ${top_srcdir}/share/dictionary -X "; \
                exit 1; \
        fi
+       ${Q}touch $@
 
 .NO_PARALLEL: $(TEST)
 $(TEST):