]> rtime.felk.cvut.cz Git - omk.git/commitdiff
test: Allow testing only a single type of rules
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 12 Mar 2011 15:37:58 +0000 (16:37 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 12 Mar 2011 16:07:40 +0000 (17:07 +0100)
To do this, just run: make OMK_RULES=<type>

tests/Makefile

index d2545de36d109ddccd7cd4131adeb0d9573981db..eabe6ebc4a1286deabd166ef20b7eaecd165ca38 100644 (file)
@@ -19,4 +19,8 @@ wvtest: $(wvtest_SCRIPTS:%=run-%)
 RULES=$(shell cd ../rules; ls)
 
 run-%: %
+ifeq ($(OMK_RULES),)
        for i in $(RULES); do OMK_RULES=$$i ./$* || exit 1; done
+else
+       ./$*
+endif