aboutsummaryrefslogtreecommitdiff
path: root/tests/scripts/makefile
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-04-22 21:09:09 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2025-04-22 21:09:09 +0300
commit9d735045e0b73b46443f9dacd1b42f5ac3e734de (patch)
treeaab90f47777ba3f8fb7b7760c4457426d7cf62a2 /tests/scripts/makefile
parent96eca4b42f1efc4fbb663dd6994a43fcdf26bf5d (diff)
downloadkmi-9d735045e0b73b46443f9dacd1b42f5ac3e734de.tar.gz
kmi-9d735045e0b73b46443f9dacd1b42f5ac3e734de.zip
simplify generator scripts
Diffstat (limited to 'tests/scripts/makefile')
-rw-r--r--tests/scripts/makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/scripts/makefile b/tests/scripts/makefile
index 63150b1..2161427 100644
--- a/tests/scripts/makefile
+++ b/tests/scripts/makefile
@@ -40,11 +40,12 @@ include tests.mk
.PHONY: check
check: $(TESTS)
- @cd reports; for d in * ; do \
- if [ ! -f "$$d/OK" ]; then \
- echo "BROKEN: $$d" ; \
- elif [ "$$(tail -n1 $$d/OK)" != "OK" ]; then \
- echo "FAIL: $$d" ; \
- fi \
+ @cd reports; for d in * ; do \
+ if [ ! -f "$$d/log" ]; then \
+ echo "BROKEN: $$d" ; \
+ elif grep 'BUG|ERR' $$d/log \
+ || [ "$$(tail -n1 $$d/log | tr -d '\r')" != "OK" ]; then \
+ echo "FAIL: $$d" ; \
+ fi \
done
@echo "Done."