diff options
author | Johnny Chen <johnny.chen@apple.com> | 2010-10-06 20:40:56 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2010-10-06 20:40:56 +0000 |
commit | 56e6cbdaf0f38490061c94eb17c71bb46f9a27a6 (patch) | |
tree | 580bb8e94e875f4065ed0a56417d972a7341c41e /llvm/lib/Analysis/DebugInfo.cpp | |
parent | 233b3a2f95b32cec22f246a191e3321d2007fd85 (diff) | |
download | bcm5719-llvm-56e6cbdaf0f38490061c94eb17c71bb46f9a27a6.tar.gz bcm5719-llvm-56e6cbdaf0f38490061c94eb17c71bb46f9a27a6.zip |
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
Diffstat (limited to 'llvm/lib/Analysis/DebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions