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 "Running tbaMUD unit tests"
|
||||
@echo "=========================================="
|
||||
@./test_utils && echo "[PASS] test_utils" || echo "[FAIL] test_utils"
|
||||
@./test_random && echo "[PASS] test_random" || echo "[FAIL] test_random"
|
||||
@./test_interpreter && echo "[PASS] test_interpreter" || echo "[FAIL] test_interpreter"
|
||||
@./test_class && echo "[PASS] test_class" || echo "[FAIL] test_class"
|
||||
@status=0; \
|
||||
if ./test_utils; then \
|
||||
echo "[PASS] test_utils"; \
|
||||
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:
|
||||
rm -f $(TESTS)
|
||||
|
||||
Reference in New Issue
Block a user