diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-20 06:17:21 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-20 06:17:21 +0000 |
commit | 3418579046f3214f4135a1334cbde576f7a86420 (patch) | |
tree | 2aa5bf259ab6d224dd4f7953704dfe68cb013e54 /test/Makefile | |
parent | 848454aedee3009026433cdc6f7298edf40e45a1 (diff) | |
download | external_llvm-3418579046f3214f4135a1334cbde576f7a86420.zip external_llvm-3418579046f3214f4135a1334cbde576f7a86420.tar.gz external_llvm-3418579046f3214f4135a1334cbde576f7a86420.tar.bz2 |
Add 'make check-all', which runs the LLVM tests along with the clang tests if
its in the standard location.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82374 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile index 661f791..7703701 100644 --- a/test/Makefile +++ b/test/Makefile @@ -46,6 +46,15 @@ ifdef VG VALGRIND := valgrind --tool=memcheck --quiet --trace-children=yes --error-exitcode=3 --leak-check=full $(VALGRIND_EXTRA_ARGS) endif +# Check what to run for -all +EXTRA_LIT_SITE_CFGS := +LIT_ALL_TESTSUITES := $(LIT_TESTSUITE) +ifndef TESTSUITE +ifeq ($(shell test -d $(PROJ_SRC_DIR)/../tools/clang && echo OK), OK) +LIT_ALL_TESTSUITES += $(PROJ_OBJ_DIR)/../tools/clang/test +endif +endif + IGNORE_TESTS := ifndef RUNLLVM2CPP @@ -81,6 +90,14 @@ check-local-lit:: lit.site.cfg Unit/lit.site.cfg --path "$(LLVMGCCDIR)/bin" \ $(LIT_ARGS) $(LIT_TESTSUITE) ) +check-local-all:: lit.site.cfg Unit/lit.site.cfg $(EXTRA_LIT_SITE_CFGS) + ( $(ULIMIT) \ + $(LLVM_SRC_ROOT)/utils/lit/lit.py \ + --path "$(LLVMToolDir)" \ + --path "$(LLVM_SRC_ROOT)/test/Scripts" \ + --path "$(LLVMGCCDIR)/bin" \ + $(LIT_ARGS) $(LIT_ALL_TESTSUITES) ) + ifdef TESTONE CLEANED_TESTONE := $(patsubst %/,%,$(TESTONE)) CLEANED_TESTONE := $(patsubst test/%,%,$(CLEANED_TESTONE)) |