]>
Commit | Line | Data |
---|---|---|
c00f04f5 HH |
1 | .PHONY: all check clean |
2 | ||
3 | check: | |
1f524c45 | 4 | @[ "$$EUID" == "0" ] || { echo "'check' must be run as root! Please use 'sudo'."; exit 1; } |
aa40b821 HH |
5 | @{ ret=0; \ |
6 | for i in TEST-[0-9]*; do \ | |
c00f04f5 HH |
7 | [ -d $$i ] || continue ; \ |
8 | [ -f $$i/Makefile ] || continue ; \ | |
9fd9e961 | 9 | if [ -n "$$TESTS" ]; then t=$${i##TEST-}; t=$${t%%-*}; [ "$${TESTS#*$$t*}" != "$$TESTS" ] || continue; fi; \ |
e96c0100 | 10 | if [ -n "$$SKIP" ]; then t=$${i##TEST-}; t=$${t%%-*}; [ "$${SKIP#*$$t*}" != "$$SKIP" ] && continue; fi; \ |
aa40b821 HH |
11 | $(MAKE) -C $$i all ; ret=$$((ret + $$?)); \ |
12 | done; exit $$ret; } | |
c00f04f5 HH |
13 | |
14 | clean: | |
15 | @for i in TEST-[0-9]*; do \ | |
16 | [ -d $$i ] || continue ; \ | |
17 | [ -f $$i/Makefile ] || continue ; \ | |
3e1d48fd | 18 | $(MAKE) -C $$i clean ; \ |
c00f04f5 HH |
19 | done |
20 | ||
21 | all: | |
22 |