fix test rule
authorLaurent Mazet <laurent.mazet@thalesgroup.com>
Tue, 22 Nov 2022 17:16:33 +0000 (18:16 +0100)
committerLaurent Mazet <laurent.mazet@thalesgroup.com>
Tue, 22 Nov 2022 17:16:33 +0000 (18:16 +0100)
makefile

index 5b03e86e77438a3ffbef88e4892a8b01339774ba..15683ec6d21642a9051862afb8c42965fc65831f 100644 (file)
--- a/makefile
+++ b/makefile
@@ -73,14 +73,10 @@ include $(wildcard *.d)
        $(call PASS, SUCCESS)
 
 test_%: %.test %.exe
-       PATH=$$PATH:.; \
-       IFS=$$'\n'; \
-       LOGFILE=${<:.test=.log}; \
-       rm -f $$LOGFILE; \
-       RC=0; \
-       for test in `cat $<`; do \
-         echo "=== $$test ===" | tee -a $$LOGFILE; \
-         ( eval $(VALGRIND) $$test ) 2>&1 | tee -a $$LOGFILE; \
+       IFS=$$'\n'; RC=0; \
+       for test in `cat $< | sed 's,${<:.test=.exe},./${<:.test=.exe},g'`; do \
+         echo "=== $$test ==="; \
+         eval $(VALGRIND) $$test; \
          [ $$? -eq 0 ] && echo -e "\033[1;32mSUCCESS\033[0;0m" \
                        || { echo -e "\033[1;31mFAILED\033[0;0m"; RC=1; }; \
        done; \