mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
tests: more clear output log
This commit is contained in:
parent
c5eaa0e126
commit
871571e258
1 changed files with 9 additions and 1 deletions
|
|
@ -4,6 +4,9 @@ rawtests = \
|
||||||
test_env_manip \
|
test_env_manip \
|
||||||
metacharacters \
|
metacharacters \
|
||||||
|
|
||||||
|
ifeq ($(CFLAGS),)
|
||||||
|
CFLAGS = -Wall -Wextra -Werror -g
|
||||||
|
endif
|
||||||
tests = $(addprefix test_,$(rawtests))
|
tests = $(addprefix test_,$(rawtests))
|
||||||
test_objs = $(addsuffix .o,$(tests))
|
test_objs = $(addsuffix .o,$(tests))
|
||||||
objs := $(addprefix ../,$(objs)) testutil.o
|
objs := $(addprefix ../,$(objs)) testutil.o
|
||||||
|
|
@ -19,8 +22,9 @@ LINCLUDE = -L$(LIBFTDIR)
|
||||||
|
|
||||||
.PHONY: run
|
.PHONY: run
|
||||||
|
|
||||||
|
.NOTPARALLEL: run
|
||||||
run: $(tests)
|
run: $(tests)
|
||||||
$(addprefix ./,$(addsuffix &&,$(tests))) echo "Finished running C tests"
|
@echo "Finished running C tests"
|
||||||
|
|
||||||
-include $(deps)
|
-include $(deps)
|
||||||
|
|
||||||
|
|
@ -30,6 +34,10 @@ run: $(tests)
|
||||||
|
|
||||||
test_%: %.o $(objs)
|
test_%: %.o $(objs)
|
||||||
$(CC) $(CFLAGS) -o $@ $*.o $(objs) $(LINCLUDE) $(LDLIBS)
|
$(CC) $(CFLAGS) -o $@ $*.o $(objs) $(LINCLUDE) $(LDLIBS)
|
||||||
|
@echo
|
||||||
|
@echo "====== Now running test: $@ ======"
|
||||||
|
@echo
|
||||||
|
./$@
|
||||||
|
|
||||||
fclean:
|
fclean:
|
||||||
rm -f $(tests)
|
rm -f $(tests)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue