mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-31 17:42:40 +00:00
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
This commit is contained in:
parent
848454aede
commit
3418579046
@ -1613,6 +1613,18 @@ check-lit::
|
|||||||
$(EchoCmd) No test directory ; \
|
$(EchoCmd) No test directory ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
check-all::
|
||||||
|
$(Verb) if test -d "$(PROJ_OBJ_ROOT)/test" ; then \
|
||||||
|
if test -f "$(PROJ_OBJ_ROOT)/test/Makefile" ; then \
|
||||||
|
$(EchoCmd) Running test suite ; \
|
||||||
|
$(MAKE) -C $(PROJ_OBJ_ROOT)/test check-local-all ; \
|
||||||
|
else \
|
||||||
|
$(EchoCmd) No Makefile in test directory ; \
|
||||||
|
fi ; \
|
||||||
|
else \
|
||||||
|
$(EchoCmd) No test directory ; \
|
||||||
|
fi
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# UNITTESTS: Running the unittests test suite
|
# UNITTESTS: Running the unittests test suite
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
@ -46,6 +46,15 @@ ifdef VG
|
|||||||
VALGRIND := valgrind --tool=memcheck --quiet --trace-children=yes --error-exitcode=3 --leak-check=full $(VALGRIND_EXTRA_ARGS)
|
VALGRIND := valgrind --tool=memcheck --quiet --trace-children=yes --error-exitcode=3 --leak-check=full $(VALGRIND_EXTRA_ARGS)
|
||||||
endif
|
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 :=
|
IGNORE_TESTS :=
|
||||||
|
|
||||||
ifndef RUNLLVM2CPP
|
ifndef RUNLLVM2CPP
|
||||||
@ -81,6 +90,14 @@ check-local-lit:: lit.site.cfg Unit/lit.site.cfg
|
|||||||
--path "$(LLVMGCCDIR)/bin" \
|
--path "$(LLVMGCCDIR)/bin" \
|
||||||
$(LIT_ARGS) $(LIT_TESTSUITE) )
|
$(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
|
ifdef TESTONE
|
||||||
CLEANED_TESTONE := $(patsubst %/,%,$(TESTONE))
|
CLEANED_TESTONE := $(patsubst %/,%,$(TESTONE))
|
||||||
CLEANED_TESTONE := $(patsubst test/%,%,$(CLEANED_TESTONE))
|
CLEANED_TESTONE := $(patsubst test/%,%,$(CLEANED_TESTONE))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user