From 871571e258e29ecd116c19c3446393e19b0d88a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Thu, 13 Feb 2025 17:32:51 +0100 Subject: [PATCH] tests: more clear output log --- tests/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/Makefile b/tests/Makefile index 7d76d89..6f7d52d 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -4,6 +4,9 @@ rawtests = \ test_env_manip \ metacharacters \ +ifeq ($(CFLAGS),) + CFLAGS = -Wall -Wextra -Werror -g +endif tests = $(addprefix test_,$(rawtests)) test_objs = $(addsuffix .o,$(tests)) objs := $(addprefix ../,$(objs)) testutil.o @@ -19,8 +22,9 @@ LINCLUDE = -L$(LIBFTDIR) .PHONY: run +.NOTPARALLEL: run run: $(tests) - $(addprefix ./,$(addsuffix &&,$(tests))) echo "Finished running C tests" + @echo "Finished running C tests" -include $(deps) @@ -30,6 +34,10 @@ run: $(tests) test_%: %.o $(objs) $(CC) $(CFLAGS) -o $@ $*.o $(objs) $(LINCLUDE) $(LDLIBS) + @echo + @echo "====== Now running test: $@ ======" + @echo + ./$@ fclean: rm -f $(tests)