Allow .llx testcases (i.e., those that contain explicit RUN: stmts.)
[oota-llvm.git] / test / CBackend / Makefile
index e549e6e5fadba35dc247b7815e09ab110d6e53c6..5dc7ffe2392226f5549fffd83ba9b506f79baf66 100644 (file)
@@ -10,9 +10,9 @@ include $(LEVEL)/test/Makefile.tests
 .PRECIOUS: Output/%.c
 
 TESTS := $(wildcard *.ll)
+FTESTS := $(wildcard *.llx)   # Freeform tests
 
-all:: $(addprefix Output/, $(TESTS:%.ll=%.to))
-
+all:: $(addprefix Output/, $(TESTS:%.ll=%.to)) $(addprefix Output/, $(FTESTS:%.llx=%.llx.out))
 
 Output/%.to: Output/%.c
        $(CC) -c -Werror $< -o $@ || \
@@ -21,3 +21,7 @@ Output/%.to: Output/%.c
 Output/%.c: %.ll Output/.dir $(LAS) $(LDIS)
        $(LAS) < $< | $(LDIS) -c > $@ || \
                (rm -f $@; $(FAILURE) $@ )
+
+Output/%.llx.out: %.llx Output/.dir $(LAS) $(LDIS)
+       -$(TESTRUNR) $<
+