From dbe346eb85628a44b18d00c666883b7506dc75ea Mon Sep 17 00:00:00 2001 From: Zihao Yu Date: Tue, 20 Feb 2024 14:51:34 +0800 Subject: [PATCH] tests,cpu-tests,Makefile: refine --- tests/cpu-tests/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/cpu-tests/Makefile b/tests/cpu-tests/Makefile index 5893f64..fb63e0b 100644 --- a/tests/cpu-tests/Makefile +++ b/tests/cpu-tests/Makefile @@ -10,16 +10,16 @@ COLOR_NONE = \033[0m ALL = $(basename $(notdir $(shell find tests/. -name "*.c"))) all: $(addprefix Makefile., $(ALL)) - @echo "" $(ALL) + @echo "test list [$(words $(ALL)) item(s)]:" $(ALL) $(ALL): %: Makefile.% Makefile.%: tests/%.c latest @/bin/echo -e "NAME = $*\nSRCS = $<\ninclude $${AM_HOME}/Makefile" > $@ @if make -s -f $@ ARCH=$(ARCH) $(MAKECMDGOALS); then \ - printf "[%14s] $(COLOR_GREEN)PASS!$(COLOR_NONE)\n" $* >> $(RESULT); \ + printf "[%14s] $(COLOR_GREEN)PASS$(COLOR_NONE)\n" $* >> $(RESULT); \ else \ - printf "[%14s] $(COLOR_RED)FAIL!$(COLOR_NONE)\n" $* >> $(RESULT); \ + printf "[%14s] $(COLOR_RED)***FAIL***$(COLOR_NONE)\n" $* >> $(RESULT); \ fi -@rm -f Makefile.$*