From: Alan T. DeKok Date: Mon, 15 Jun 2015 19:08:16 +0000 (-0400) Subject: Print out the command we executed when the test failed X-Git-Tag: release_3_0_9~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ae44e97a2d26fc2455508e7ecd37975c4c0d462;p=thirdparty%2Ffreeradius-server.git Print out the command we executed when the test failed --- diff --git a/src/tests/auth/all.mk b/src/tests/auth/all.mk index f226e05bc09..284033ff8d2 100644 --- a/src/tests/auth/all.mk +++ b/src/tests/auth/all.mk @@ -88,6 +88,7 @@ $(BUILD_DIR)/tests/auth/%: $(DIR)/% $(BUILD_DIR)/tests/auth/%.attrs $(TESTBINDIR if ! grep ERROR $< 2>&1 > /dev/null; then \ cat $@.log; \ echo "# $@.log"; \ + echo "TESTDIR=$(notdir $@) $(TESTBIN)/unittest -D share -d src/tests/auth/ -i $@.attrs -f $@.attrs -xxx > $@.log 2>&1"; \ exit 1; \ fi; \ FOUND=$$(grep ^$< $@.log | head -1 | sed 's/:.*//;s/.*\[//;s/\].*//'); \ @@ -95,6 +96,7 @@ $(BUILD_DIR)/tests/auth/%: $(DIR)/% $(BUILD_DIR)/tests/auth/%.attrs $(TESTBINDIR if [ "$$EXPECTED" != "$$FOUND" ]; then \ cat $@.log; \ echo "# $@.log"; \ + echo "TESTDIR=$(notdir $@) $(TESTBIN)/unittest -D share -d src/tests/auth/ -i $@.attrs -f $@.attrs -xxx > $@.log 2>&1"; \ exit 1; \ fi \ fi