* print out message when tests start
* testrunner sets status now
* on failed test run print out test name
I tested these changes with the non-parallel makefile
and it did not break.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48453
91177308-0d34-0410-b5e6-
96231b3b80d8
Makefile.tests:
@ echo '%.testresults: %' > $@
@ echo "^@ printf '.'" | tr "^" "\t" >> $@
- @ echo "^@ PATH=$$PATH:$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts ./TestRunner.sh &< > &@ || echo $$^" | tr "^&" '\t$$' >> $@
+ @ echo "^@ PATH=$$PATH:$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts ./TestRunner.sh &< > &@ || (echo; echo '----' &! 'failed ----')" | tr '^!&' '\t^$$' >> $@
@ echo >> $@
@ echo "TESTS =" \\ >> $@
@ find $(TESTDIRS) \
@ echo ".PHONY: all report clean" >> $@
all:: Makefile.tests
+ @ echo '--- Running clang tests ---'
@ $(MAKE) -f $< clean
@ $(MAKE) -f $< all report
@ $(MAKE) -f $< clean
cat $OUTPUT
rm $OUTPUT
echo "******************** TEST '$TESTNAME' FAILED! ********************"
+ exit 1
)