From 7790e27b3423901e2080bfd3c600a65a48d42886 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 1 May 2026 18:37:38 +0300 Subject: start adding proper tests --- tests/scripts/makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/scripts/makefile (limited to 'tests/scripts/makefile') diff --git a/tests/scripts/makefile b/tests/scripts/makefile new file mode 100644 index 0000000..21b1418 --- /dev/null +++ b/tests/scripts/makefile @@ -0,0 +1,19 @@ +.PHONY: all +all: check + +COMPILE_TEST := $(CC) -L../mod -I../include -I../lib -Wl,-rpath=../mod -O2 +TEST_LIBS := -lfwdio -lfwdmem -lfwdutil + +TESTS := +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 \ + done + @echo "Done." -- cgit v1.2.3