mirror of
https://github.com/tbamud/tbamud.git
synced 2026-04-30 04:41:51 +02:00
Propagate failure to calling shell
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user