Propagate failure to calling shell

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Thomas Arp
2026-04-22 22:48:56 +02:00
committed by GitHub
parent 9343e38860
commit b77f4ad3ca

View File

@@ -72,10 +72,32 @@ test: $(TESTS)
@echo "==========================================" @echo "=========================================="
@echo "Running tbaMUD unit tests" @echo "Running tbaMUD unit tests"
@echo "==========================================" @echo "=========================================="
@./test_utils && echo "[PASS] test_utils" || echo "[FAIL] test_utils" @status=0; \
@./test_random && echo "[PASS] test_random" || echo "[FAIL] test_random" if ./test_utils; then \
@./test_interpreter && echo "[PASS] test_interpreter" || echo "[FAIL] test_interpreter" echo "[PASS] test_utils"; \
@./test_class && echo "[PASS] test_class" || echo "[FAIL] test_class" else \
echo "[FAIL] test_utils"; \
status=1; \
fi; \
if ./test_random; then \
echo "[PASS] test_random"; \
else \
echo "[FAIL] test_random"; \
status=1; \
fi; \
if ./test_interpreter; then \
echo "[PASS] test_interpreter"; \
else \
echo "[FAIL] test_interpreter"; \
status=1; \
fi; \
if ./test_class; then \
echo "[PASS] test_class"; \
else \
echo "[FAIL] test_class"; \
status=1; \
fi; \
exit $$status
clean: clean:
rm -f $(TESTS) rm -f $(TESTS)