llvm-project/lldb/test
Johnny Chen f1548d4f74 Add a new option to the test driver, -N dsym or -N dwarf, in order to exclude tests decorated with
either @dsym_test or @dwarf_test to be executed during the testsuite run.  There are still lots of
Test*.py files which have not been decorated with the new decorator.

An example:

# From TestMyFirstWatchpoint.py ->
class HelloWatchpointTestCase(TestBase):

    mydir = os.path.join("functionalities", "watchpoint", "hello_watchpoint")

    @dsym_test
    def test_hello_watchpoint_with_dsym_using_watchpoint_set(self):
        """Test a simple sequence of watchpoint creation and watchpoint hit."""
        self.buildDsym(dictionary=self.d)
        self.setTearDownCleanup(dictionary=self.d)
        self.hello_watchpoint()

    @dwarf_test
    def test_hello_watchpoint_with_dwarf_using_watchpoint_set(self):
        """Test a simple sequence of watchpoint creation and watchpoint hit."""
        self.buildDwarf(dictionary=self.d)
        self.setTearDownCleanup(dictionary=self.d)
        self.hello_watchpoint()


# Invocation ->
[17:50:14] johnny:/Volumes/data/lldb/svn/ToT/test $ ./dotest.py -N dsym -v -p TestMyFirstWatchpoint.py
LLDB build dir: /Volumes/data/lldb/svn/ToT/build/Debug
LLDB-137
Path: /Volumes/data/lldb/svn/ToT
URL: https://johnny@llvm.org/svn/llvm-project/lldb/trunk
Repository Root: https://johnny@llvm.org/svn/llvm-project
Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
Revision: 154133
Node Kind: directory
Schedule: normal
Last Changed Author: gclayton
Last Changed Rev: 154109
Last Changed Date: 2012-04-05 10:43:02 -0700 (Thu, 05 Apr 2012)



Session logs for test failures/errors/unexpected successes will go into directory '2012-04-05-17_50_49'
Command invoked: python ./dotest.py -N dsym -v -p TestMyFirstWatchpoint.py
compilers=['clang']

Configuration: arch=x86_64 compiler=clang
----------------------------------------------------------------------
Collected 2 tests

1: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)
   Test a simple sequence of watchpoint creation and watchpoint hit. ... skipped 'dsym tests'
2: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)
   Test a simple sequence of watchpoint creation and watchpoint hit. ... ok

----------------------------------------------------------------------
Ran 2 tests in 1.138s

OK (skipped=1)
Session logs for test failures/errors/unexpected successes can be found in directory '2012-04-05-17_50_49'
[17:50:50] johnny:/Volumes/data/lldb/svn/ToT/test $ 

llvm-svn: 154154
2012-04-06 00:56:05 +00:00
..
api/check_public_api_headers Patches for running some of the Linux tests from Dawn, thanks! 2011-12-22 19:21:46 +00:00
arm_emulation Remove old emulation test data files. 2011-04-22 16:29:23 +00:00
attic Move two files to the 'attic'. 2010-10-05 00:08:08 +00:00
benchmarks Move some print stmts to the test method, where they get printed only if the test is qualified to run 2011-12-10 07:18:11 +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
expression_command Add a new option to the test driver, -N dsym or -N dwarf, in order to exclude tests decorated with 2012-04-06 00:56:05 +00:00
functionalities Add a new option to the test driver, -N dsym or -N dwarf, in order to exclude tests decorated with 2012-04-06 00:56:05 +00:00
help After discussions with Jim and Greg, modify the 'watchpoint set' command to become a mutiword command 2012-02-08 22:37:48 +00:00
lang Disabling blocks support because of rdar://problem/11024417 - This is hopefully just a temporary countermeasure 2012-03-30 16:58:37 +00:00
logging Modify the loggings output oracle to fix test suite failure, after the recent change to CommandInterpreter.cpp. 2011-08-25 21:51:45 +00:00
macosx Add a Test case to make sure that __apple_types section does get produced by dsymutil. 2012-04-03 01:07:24 +00:00
make Added support for looking up the complete type for 2012-02-22 23:57:45 +00:00
pexpect-2.4 Add pexpect-2.4 (a pure Python module for controlling and automating other programs) to the test directory. 2011-03-11 20:13:06 +00:00
plugins lldb should warn when dSYM does not match the binary. 2012-02-01 01:49:50 +00:00
python_api Added a new Host class: ReadWriteLock 2012-04-05 16:12:35 +00:00
settings Followup check in for http://llvm.org/viewvc/llvm-project?rev=148491&view=rev, 2012-01-23 19:49:28 +00:00
source-manager Work in progress for: 2011-12-20 00:41:28 +00:00
terminal Setting terminal type to 'xterm' on Darwin; otherwise, to 'vt100'. 2012-02-09 19:34:25 +00:00
types Add comment for build_and_run_with_source_atoms_expr() and remove redundant #include from basic_type.cpp. 2012-01-10 23:36:06 +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
warnings/uuid lldb should warn when dSYM does not match the binary. 2012-02-01 01:49:50 +00:00
Makefile tests: Improve Makefile/dotest to properly set LLDB_HERE variable used in some 2011-10-31 23:27:06 +00:00
README-TestSuite Add some descriptions about the default executable name being 'a.out' and can be overwritten 2011-07-28 21:15:39 +00:00
bench-history Add bench entries. 2011-11-29 19:13:38 +00:00
bench.py Establish a baseline for bench.py score by using a fixed lldb executable as the 2011-10-26 22:58:02 +00:00
blacklist.py Don't set DYLD_LIBRARY_PATH in the Python environment (which will get passed down to 2011-08-03 17:41:28 +00:00
dosep.ty Remove invalid docstring (due to cut-and-paste error). 2011-11-16 18:48:48 +00:00
dotest.py Add a new option to the test driver, -N dsym or -N dwarf, in order to exclude tests decorated with 2012-04-06 00:56:05 +00:00
lldbbench.py Add display of min and max samples to Stopwatch's string representation. 2011-10-27 00:32:03 +00:00
lldbtest.py Add a new option to the test driver, -N dsym or -N dwarf, in order to exclude tests decorated with 2012-04-06 00:56:05 +00:00
lldbutil.py Convert all python objects in our API to use overload the __str__ method 2012-02-04 02:27:34 +00:00
redo.py Modify redo.py script so that if sessin_dir is left unspecified, it uses the heuristic 2012-01-24 01:53:02 +00:00