[Lldb-commits] [lldb] r132231 - /lldb/trunk/test/lldbtest.py
Johnny Chen
johnny.chen at apple.com
Fri May 27 16:36:52 PDT 2011
Author: johnny
Date: Fri May 27 18:36:52 2011
New Revision: 132231
URL: http://llvm.org/viewvc/llvm-project?rev=132231&view=rev
Log:
Add comment headers describing some method groups of our TestBase class.
Remove an unnecessary __import__() function call.
Modified:
lldb/trunk/test/lldbtest.py
Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=132231&r1=132230&r2=132231&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Fri May 27 18:36:52 2011
@@ -919,6 +919,10 @@
# End of while loop.
+ # ====================================================
+ # Config. methods supported through a plugin interface
+ # (enables reading of the current test configuration)
+ # ====================================================
def getArchitecture(self):
"""Returns the architecture in effect the test suite is now running with."""
@@ -933,7 +937,6 @@
def getRunOptions(self):
"""Command line option for -A and -C to run this test again, called from
within dumpSessionInfo()."""
- module = __import__(sys.platform)
arch = self.getArchitecture()
comp = self.getCompiler()
if not arch and not comp:
@@ -942,6 +945,10 @@
return "%s %s" % ("-A "+arch if arch else "",
"-C "+comp if comp else "")
+ # ==================================================
+ # Build methods supported through a plugin interface
+ # ==================================================
+
def buildDefault(self, architecture=None, compiler=None, dictionary=None):
"""Platform specific way to build the default binaries."""
module = __import__(sys.platform)
@@ -960,6 +967,10 @@
if not module.buildDwarf(self, architecture, compiler, dictionary):
raise Exception("Don't know how to build binary with dwarf")
+ # =================================================
+ # Misc. helper methods for debugging test execution
+ # =================================================
+
def DebugSBValue(self, frame, val):
"""Debug print a SBValue object, if traceAlways is True."""
from lldbutil import value_type_to_str
More information about the lldb-commits
mailing list