From c48540801bca98fbc5850c26434ddb2a7dcb4cda Mon Sep 17 00:00:00 2001 From: Stefan Mititelu Date: Fri, 11 Feb 2022 21:15:24 +0200 Subject: [PATCH] Add more info about ok/failed t tests --- t/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/t/Makefile b/t/Makefile index 88ab6cb24..4189a2164 100644 --- a/t/Makefile +++ b/t/Makefile @@ -108,7 +108,19 @@ endif true # override linking recipe from common.Makefile unit-tests: $(TESTS) - for x in $(TESTS); do echo testing: $$x; G_DEBUG=fatal-warnings ./$$x || exit 1; done + failed="" ; \ + for x in $(TESTS); do \ + echo `date +"%Y-%m-%d %H:%M:%S"` testing: $$x ; \ + G_DEBUG=fatal-warnings ./$$x ; \ + if [ $$? -eq 0 ] ; \ + then echo `date +"%Y-%m-%d %H:%M:%S"` test $$x: succeeded ; \ + else echo `date +"%Y-%m-%d %H:%M:%S"` test $$x: failed ; failed="$$failed $$x" ; \ + fi ; \ + done ; \ + if [ -n "$$failed" ] ; then \ + echo "Tests failed: $$failed" ; \ + exit 1 ; \ + fi daemon-tests: daemon-tests-main daemon-tests-jb daemon-tests-pubsub daemon-tests-websocket \ daemon-tests-intfs daemon-tests-stats # daemon-tests-delay-buffer daemon-tests-delay-timing