Allow llx tests as well
authorChris Lattner <sabre@nondot.org>
Sun, 11 May 2003 18:38:25 +0000 (18:38 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 11 May 2003 18:38:25 +0000 (18:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6088 91177308-0d34-0410-b5e6-96231b3b80d8

test/LLC/Makefile

index 4fb94efba31c5bcf8ccd1005a3f5a33d50aa3505..3c07cd08839477a513a2d351a512685fcf9c318e 100644 (file)
@@ -7,11 +7,16 @@ include $(LEVEL)/test/Makefile.tests
 
 # Only .ll tests here.  C tests are run via Makefile.singlesrc above.
 # 
-TESTS := $(wildcard *.ll)
+LL_TESTS := $(wildcard *.ll)
+LLX_TESTS := $(wildcard *.llx)
 
-all:: $(addprefix Output/, $(filter-out %.c, $(TESTS:%.ll=%.ts)))
+all:: $(addprefix Output/, $(LL_TESTS:%.ll=%.ts)) 
+all:: $(addprefix Output/, $(LLX_TESTS:%.llx=%.llx.out))
 
 Output/%.ts: Output/%.bc $(LLC) Output/.dir
        @echo "======== Compiling $< =========="
        $(LLC) -f $< -o $@ || \
                  ( rm -f $@; $(FAILURE) $@ )
+
+Output/%.llx.out: %.llx Output/.dir $(LLC)
+       -$(TESTRUNR) $<