summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/lib.mk
blob: b30c5a49cb61107064a13541274040f7d8114eb9 (plain)
1
2
3
4
5
6
7
8
9
10
define RUN_TESTS
	@for TEST in $(TEST_PROGS); do \
		(./$$TEST && echo "selftests: $$TEST [PASS]") || echo "selftests: $$TEST [FAIL]"; \
	done;
endef

run_tests: all
	$(RUN_TESTS)

.PHONY: run_tests all clean