Skip to content
Snippets Groups Projects
Commit b0589f16 authored by Peter Collingbourne's avatar Peter Collingbourne
Browse files

Add a default rule to test/Makefile which runs the test suite

llvm-svn: 133461
parent d6824de0
No related branches found
No related tags found
No related merge requests found
.PHONY: clean all LLDB_LEVEL := ..
include $(LLDB_LEVEL)/Makefile
.PHONY: programs
all:: check-local
#---------------------------------------------------------------------- #----------------------------------------------------------------------
# Make all of the test programs # Make all of the test programs
#---------------------------------------------------------------------- #----------------------------------------------------------------------
all: programs:
find . -type d -depth 1 | xargs -J % find % \ find . -type d -depth 1 | xargs -J % find % \
-name Makefile \ -name Makefile \
-exec echo \; \ -exec echo \; \
...@@ -11,11 +16,21 @@ all: ...@@ -11,11 +16,21 @@ all:
-execdir make \; -execdir make \;
#---------------------------------------------------------------------- #----------------------------------------------------------------------
# Make all of the test programs # Clean all of the test programs
#---------------------------------------------------------------------- #----------------------------------------------------------------------
clean: clean::
find . -type d -depth 1 | xargs -J % find % \ find . -type d -depth 1 | xargs -J % find % \
-name Makefile \ -name Makefile \
-exec echo \; \ -exec echo \; \
-exec echo make -f '{}' clean \; \ -exec echo make -f '{}' clean \; \
-execdir make clean \; -execdir make clean \;
#----------------------------------------------------------------------
# Run the tests
#----------------------------------------------------------------------
check-local::
rm -rf ../test-rdir
env PATH="$(ToolDir):$(PATH)" \
PYTHONPATH=$(ToolDir) \
$(SHLIBPATH_VAR)=$(LibDir) \
python $(PROJ_SRC_DIR)/dotest.py -i -v -r ../test-rdir
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment