From 0ea2409fd0e907f7da4e074189be39c40766ab28 Mon Sep 17 00:00:00 2001 From: Nathan Fisher Date: Thu, 10 Aug 2023 22:58:06 -0400 Subject: [PATCH] Add 'Ok' / 'FAILED' overall status for tests --- test/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/Makefile b/test/Makefile index 161577f..130b861 100644 --- a/test/Makefile +++ b/test/Makefile @@ -74,7 +74,8 @@ test: $(tests) output else echo -e '\e[0;31mFailure\e[0m' ; \ fail=$$(expr $${fail} + 1) ; \ fi ; done || true ; \ - printf "\nResults: %i succeeded, %i failed\n" $${success} $${fail} + if [ $${fail} == 0 ] ; then res="Ok" ; else res="FAILED" ; fi ; \ + printf "\nResults: %s. %i succeeded; %i failed\n" $${res} $${success} $${fail} output: @ [-d $@ ] 2>/dev/null || install -d $@