hanchenye-llvm-project/lldb/test
Johnny Chen 56e6cbdaf0 Enhance the test driver with a '-f filterspec' option to specify the
testclass.testmethod to be run and with a '-g' option which instructs the test
driver to only admit the module which satisfy the filterspec condition to the
test suite.

Example:

# This only runs the test case under the array_types directory which has class
# name of 'ArrayTypesTestCase' and the test method name of 'test_with_dwarf_and_run_command'.

/Volumes/data/lldb/svn/trunk/test $ ./dotest.py -v -f 'ArrayTypesTestCase.test_with_dwarf_and_run_command' -g array_types
----------------------------------------------------------------------
Collected 1 test

test_with_dwarf_and_run_command (TestArrayTypes.ArrayTypesTestCase)
Test 'frame variable var_name' on some variables with array types. ... ok

----------------------------------------------------------------------
Ran 1 test in 1.353s

OK

# And this runs the test cases under the array_types and the hello_world directories.
# If the module discovered has the 'ArrayTypesTestCase.test_with_dwarf_and_run_command'
# attribute, only the test case specified by the filterspec for the module will be run.
# If the module does not have the said attribute, e.g., the module under hello_world,
# the whole module is still admitted to the test suite.

/Volumes/data/lldb/svn/trunk/test $ ./dotest.py -v -f 'ArrayTypesTestCase.test_with_dwarf_and_run_command' array_types hello_world
----------------------------------------------------------------------
Collected 3 tests

test_with_dwarf_and_run_command (TestArrayTypes.ArrayTypesTestCase)
Test 'frame variable var_name' on some variables with array types. ... ok
test_with_dsym_and_run_command (TestHelloWorld.HelloWorldTestCase)
Create target, breakpoint, launch a process, and then kill it. ... ok
test_with_dwarf_and_process_launch_api (TestHelloWorld.HelloWorldTestCase)
Create target, breakpoint, launch a process, and then kill it. ... ok

----------------------------------------------------------------------
Ran 3 tests in 4.964s

OK

llvm-svn: 115832
2010-10-06 20:40:56 +00:00
..
array_types Use the SBTarget process launch API for api testings. 2010-10-06 20:03:28 +00:00
attic Move two files to the 'attic'. 2010-10-05 00:08:08 +00:00
bitfields Added comments about the usage of int(string, 0) and long(string, 0) which pass 2010-09-24 21:52:37 +00:00
breakpoint_command These prints should go to stderr as well. Plus add a global assert string. 2010-09-30 17:06:27 +00:00
breakpoint_locations Modification required to test clang, gcc, and llvm-gcc. 2010-09-30 22:11:33 +00:00
class_static A few modifications to the class arrays test case. 2010-09-13 02:31:18 +00:00
class_types Modification of the expected pattern for 'expr this->m_c_int' output. 2010-10-06 19:32:50 +00:00
command_source Changed the test case class names to be noun-like instead of verb-like. 2010-09-01 19:59:58 +00:00
conditional_break Wrapped the subclass-specific cleanup call within a try:except: clause. 2010-09-21 22:34:45 +00:00
dead-strip The 'thread list' command no longer displays the file:lineno after the recent check-in. 2010-10-04 16:23:16 +00:00
enum_types Removed the @expectedFailure decorator for test_with_dwarf() test case. It has 2010-09-15 16:59:20 +00:00
example Changed the test case class names to be noun-like instead of verb-like. 2010-09-01 19:59:58 +00:00
foundation Make the test module with unique name instead of just the generic name TestDisassembly. 2010-10-05 19:27:32 +00:00
function_types Remove file:lineno from the expected substrings. Matching 'a.out`string_not_empty', i.e., 2010-10-04 16:38:12 +00:00
global_variables Changed 'frame variable' output to match '(const char *)' instead of '(char const *)'. 2010-09-23 15:57:32 +00:00
hello_world Remove the @expectedFailure decorator since the SBTarget.LaunchProcess() race 2010-10-06 20:13:28 +00:00
help LLDB command "set term-width 0" needs to be changed to "settings set term-width 0" 2010-09-07 16:19:35 +00:00
inlines Converted to Makefile.rules. 2010-08-24 20:54:26 +00:00
load_unload Remove file:lineno from the expected substrings. Matching 'a_function, i.e., 2010-10-04 16:58:16 +00:00
macosx/universal Marked test_process_launch_for_universal() test case as requiring 'darwin' and 'i386' 2010-09-03 23:49:16 +00:00
make Stop using LLDB_CC/LLDB_ARCH in the plugins for test configurations. Use make 2010-09-30 17:11:58 +00:00
namespace
objc Added an objective C test that creates some NSString, NSArray and NSDictionary 2010-09-07 23:55:31 +00:00
order Test order file with both dsym and dwarf combination. 2010-09-14 22:55:48 +00:00
persistent_variables Modification of the expected start strings for simple 'expr' output involving persistent variables. 2010-10-06 19:38:08 +00:00
plugins Stop using LLDB_CC/LLDB_ARCH in the plugins for test configurations. Use make 2010-09-30 17:11:58 +00:00
print-obj
set_values Add extra value string to self.expect(). 2010-09-30 16:00:12 +00:00
settings Change the expected term-width output string to be a substring instead of a startstring 2010-10-06 19:42:37 +00:00
signed_types
stl Make the test module with unique name instead of just the generic name TestDisassembly. 2010-10-05 19:27:32 +00:00
struct_types Converted TestUnsignedTypespy and TestStructTypes.py to Dsym/Dwarf combination. 2010-09-07 18:32:57 +00:00
threads
types Change the regular expression used to grok the data type associated the output of 2010-10-06 20:00:48 +00:00
unittest2 o Added unittest2 which has added the new features in unittest for Python 2.7 2010-08-05 23:42:46 +00:00
unsigned_types Made 'frame variable' printing of unsigned types more readable, like gdb. 2010-09-24 17:33:29 +00:00
Makefile
README-TestSuite Move two files to the 'attic'. 2010-10-05 00:08:08 +00:00
dotest.py Enhance the test driver with a '-f filterspec' option to specify the 2010-10-06 20:40:56 +00:00
lldbtest.py Make the test module with unique name instead of just the generic name TestDisassembly. 2010-10-05 19:27:32 +00:00
lldbutil.py Added GetStackFrames(thread) utility function. 2010-09-09 00:55:07 +00:00