Merge pull request #68 from dracut-mailing-devs/1431698021-16626-3-git-send-email...
[dracut.git] / test / Makefile
blobf71f8540548b51cf3931735f64cbea5c61a32043
1 .PHONY: all check clean
3 check:
4 @[ "$$EUID" == "0" ] || { echo "'check' must be run as root! Please use 'sudo'."; exit 1; }
5 @for i in TEST-[0-9]*; do \
6 [ -d $$i ] || continue ; \
7 [ -f $$i/Makefile ] || continue ; \
8 if [ -n "$$TESTS" ]; then t=$${i##TEST-}; t=$${t%%-*}; [ "$${TESTS#*$$t*}" != "$$TESTS" ] || continue; fi; \
9 if [ -n "$$SKIP" ]; then t=$${i##TEST-}; t=$${t%%-*}; [ "$${SKIP#*$$t*}" != "$$SKIP" ] && continue; fi; \
10 $(MAKE) -C $$i all ; \
11 done
13 clean:
14 @for i in TEST-[0-9]*; do \
15 [ -d $$i ] || continue ; \
16 [ -f $$i/Makefile ] || continue ; \
17 $(MAKE) -C $$i clean ; \
18 done
20 all: