From b0589f16a43474b14143c20667d18973a4ff6b6a Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Mon, 20 Jun 2011 19:06:51 +0000 Subject: [PATCH] Add a default rule to test/Makefile which runs the test suite llvm-svn: 133461 --- lldb/test/Makefile | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/lldb/test/Makefile b/lldb/test/Makefile index 2221a23319e9..0083efd1794b 100644 --- a/lldb/test/Makefile +++ b/lldb/test/Makefile @@ -1,9 +1,14 @@ -.PHONY: clean all +LLDB_LEVEL := .. +include $(LLDB_LEVEL)/Makefile + +.PHONY: programs + +all:: check-local #---------------------------------------------------------------------- # Make all of the test programs #---------------------------------------------------------------------- -all: +programs: find . -type d -depth 1 | xargs -J % find % \ -name Makefile \ -exec echo \; \ @@ -11,11 +16,21 @@ all: -execdir make \; #---------------------------------------------------------------------- -# Make all of the test programs +# Clean all of the test programs #---------------------------------------------------------------------- -clean: +clean:: find . -type d -depth 1 | xargs -J % find % \ -name Makefile \ -exec echo \; \ -exec echo make -f '{}' 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 -- GitLab