[Lldb-commits] [lldb] r136394 - /lldb/trunk/test/README-TestSuite
Johnny Chen
johnny.chen at apple.com
Thu Jul 28 14:15:39 PDT 2011
Author: johnny
Date: Thu Jul 28 16:15:39 2011
New Revision: 136394
URL: http://llvm.org/viewvc/llvm-project?rev=136394&view=rev
Log:
Add some descriptions about the default executable name being 'a.out' and can be overwritten
by specifying your EXE make variable via your Makefile or within the Python test script.
Modified:
lldb/trunk/test/README-TestSuite
Modified: lldb/trunk/test/README-TestSuite
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/README-TestSuite?rev=136394&r1=136393&r2=136394&view=diff
==============================================================================
--- lldb/trunk/test/README-TestSuite (original)
+++ lldb/trunk/test/README-TestSuite Thu Jul 28 16:15:39 2011
@@ -57,7 +57,39 @@
o make directory
Contains Makefile.rules, which can be utilized by test cases to write Makefile
- based rules to build native binaries.
+ based rules to build binaries for the inferiors.
+
+ By default, the built executable name is a.out, which can be overwritten by
+ specifying your EXE make variable, via the Makefile under the specfic test
+ directory or via supplying a Python dictionary to the build method in your
+ Python test script. An example of the latter can be found in
+ test/lang/objc/radar-9691614/TestObjCMethodReturningBOOL.py, where:
+
+ def test_method_ret_BOOL_with_dsym(self):
+ """Test that objective-c method returning BOOL works correctly."""
+ d = {'EXE': self.exe_name}
+ self.buildDsym(dictionary=d)
+ self.setTearDownCleanup(dictionary=d)
+ self.objc_method_ret_BOOL(self.exe_name)
+
+ def test_method_ret_BOOL_with_dwarf(self):
+ """Test that objective-c method returning BOOL works correctly."""
+ d = {'EXE': self.exe_name}
+ self.buildDwarf(dictionary=d)
+ self.setTearDownCleanup(dictionary=d)
+ self.objc_method_ret_BOOL(self.exe_name)
+
+ def setUp(self):
+ # Call super's setUp().
+ TestBase.setUp(self)
+ # We'll use the test method name as the exe_name.
+ self.exe_name = self.testMethodName
+ # Find the line number to break inside main().
+ self.main_source = "main.m"
+ self.line = line_number(self.main_source, '// Set breakpoint here.')
+
+ The exe names for the two test methods are equal to the test method names and
+ are therefore guaranteed different.
o plugins directory
More information about the lldb-commits
mailing list