enable stop-on-error during tests
authorLaurent Mazet <mazet@softndesign.org>
Fri, 24 Jan 2025 11:24:39 +0000 (12:24 +0100)
committerLaurent Mazet <mazet@softndesign.org>
Fri, 24 Jan 2025 11:24:39 +0000 (12:24 +0100)
makefile

index 0e016a067a0315ce482cf0135f942a7b9c7ea677..14379c1e95012018be858bc093dbfb2922f804fd 100644 (file)
--- a/makefile
+++ b/makefile
@@ -152,6 +152,7 @@ test_%: %.test %.exe
          eval $$test; \
          [ $$? -eq 0 ] && echo -e "\033[1;32mSUCCESS\033[0;0m" \
                        || { echo -e "\033[1;31mFAILED\033[0;0m"; RC=1; }; \
+         test "$$RC" = 1 -a "$(STOP)" = 1 && break; \
        done; \
        test "$$RC" -ne 1