Add a testcase we should continue to argpromote
[oota-llvm.git] / test / Makefile
index 4ab3df8c6a8552f17756c90c95a3fe4f0f7afc4a..8a8f0fac5da6c5596f22971eeb6ef36cc78776d4 100644 (file)
@@ -124,7 +124,8 @@ RUNTESTFLAGS := --tool $(TESTSUITE)
 endif
 
 check-dejagnu: site.exp
-       PATH=$(LLVM_SRC_ROOT)/test/Scripts:$(PATH) $(RUNTEST) $(RUNTESTFLAGS)
+       PATH=$(LLVMToolDir):$(LLVM_SRC_ROOT)/test/Scripts:$(PATH) \
+       $(RUNTEST) $(RUNTESTFLAGS)
 
 
 dejagnu-clean:
@@ -148,3 +149,16 @@ site.exp: Makefile $(LLVM_OBJ_ROOT)/Makefile.config
        @test ! -f site.exp || mv site.exp site.bak
        @mv site.tmp site.exp
 
+#===------------------------------------------------------------------------===#
+# quick-test utility. Just runs TestRunner.sh on all the *.ll files in a
+# directory. Use like this: 
+#   cd llvm/test ; make quick-test QUICKTEST=Regression/Bytecode
+# where QUICKTEST specifies the directory you want to run the tests on.
+#===------------------------------------------------------------------------===#
+quick-test:
+       @if test -d "${QUICKTEST}" ; then \
+         cd $(LLVM_SRC_ROOT)/test/$(QUICKTEST) ; \
+         find . -name \*.ll -print -exec $(LLVM_SRC_ROOT)/test/TestRunner.sh {} \; ; \
+       else \
+         echo "Set QUICKTEST=<some directory with TestRunner.sh .ll files in it" ; \
+       fi