aboutsummaryrefslogtreecommitdiff
path: root/tests/scripts/makefile
blob: 21b1418f290613fbb2a296c46fd87b4f29a2433f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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."