[Lldb-commits] [lldb] r133461 - /lldb/trunk/test/Makefile

Peter Collingbourne peter at pcc.me.uk
Mon Jun 20 12:06:51 PDT 2011


Author: pcc
Date: Mon Jun 20 14:06:51 2011
New Revision: 133461

URL: http://llvm.org/viewvc/llvm-project?rev=133461&view=rev
Log:
Add a default rule to test/Makefile which runs the test suite

Modified:
    lldb/trunk/test/Makefile

Modified: lldb/trunk/test/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/Makefile?rev=133461&r1=133460&r2=133461&view=diff
==============================================================================
--- lldb/trunk/test/Makefile (original)
+++ lldb/trunk/test/Makefile Mon Jun 20 14:06:51 2011
@@ -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 @@
 		-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





More information about the lldb-commits mailing list