Add a quick-test target that uses QUICKTEST variable to quickly run a
authorReid Spencer <rspencer@reidspencer.com>
Tue, 9 Nov 2004 06:28:32 +0000 (06:28 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Tue, 9 Nov 2004 06:28:32 +0000 (06:28 +0000)
portion of the test suite. e.g.:

make quck-test QUICKTEST=Regression/Bytecode

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17643 91177308-0d34-0410-b5e6-96231b3b80d8

test/Makefile

index 8e4215682f916e31021bd296124e9d8987142c39..aa18e85b30f1b26498f47ff82f4873c124082316 100644 (file)
@@ -149,3 +149,10 @@ site.exp: Makefile $(LLVM_OBJ_ROOT)/Makefile.config
        @test ! -f site.exp || mv site.exp site.bak
        @mv site.tmp site.exp
 
+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