I must have missed these when eliminating the cast to bool cannonicalizations
[oota-llvm.git] / test / CBackend / Makefile
index d3ce4435e80e719a909b5255d96d5fa9bd851f65..5dc7ffe2392226f5549fffd83ba9b506f79baf66 100644 (file)
@@ -10,14 +10,18 @@ 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 $< -o $@ #|| \
+       $(CC) -c -Werror $< -o $@ || \
                (rm -f $@; $(FAILURE) $@ )
 
 Output/%.c: %.ll Output/.dir $(LAS) $(LDIS)
-       $(LAS) < $< | $(LDIS) -c > $@ #|| \
+       $(LAS) < $< | $(LDIS) -c > $@ || \
                (rm -f $@; $(FAILURE) $@ )
+
+Output/%.llx.out: %.llx Output/.dir $(LAS) $(LDIS)
+       -$(TESTRUNR) $<
+