From 9d735045e0b73b46443f9dacd1b42f5ac3e734de Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 22 Apr 2025 21:09:09 +0300 Subject: simplify generator scripts --- tests/scripts/makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'tests/scripts/makefile') 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." -- cgit v1.3