Johnny Chen | ac97a6b | 2012-04-16 18:55:15 +0000 | [diff] [blame] | 1 | # |
| 2 | # The following examples first show a bad pre/post flight config file followed by a good pre/post config file. |
| 3 | # |
| 4 | |
| 5 | [11:31:19] johnny:/Volumes/data/lldb/svn/ToT/test $ ./dotest.py -A x86_64 -v -c ../examples/test/.lldb-pre-post-flight.bad functionalities/watchpoint/hello_watchpoint |
| 6 | config: {'pre_flight': 'I am not callable', 'post_flight': <function post_flight at 0x1071871b8>} |
| 7 | fatal error: pre_flight is not callable, exiting. |
| 8 | [11:32:48] johnny:/Volumes/data/lldb/svn/ToT/test $ ./dotest.py -A x86_64 -v -c ../examples/test/.lldb-pre-post-flight functionalities/watchpoint/hello_watchpoint |
| 9 | config: {'pre_flight': <function pre_flight at 0x1098541b8>, 'post_flight': <function post_flight at 0x109854230>} |
| 10 | LLDB build dir: /Volumes/data/lldb/svn/ToT/build/Debug |
| 11 | LLDB-139 |
| 12 | Path: /Volumes/data/lldb/svn/ToT |
| 13 | URL: https://johnny@llvm.org/svn/llvm-project/lldb/trunk |
| 14 | Repository Root: https://johnny@llvm.org/svn/llvm-project |
| 15 | Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8 |
| 16 | Revision: 154753 |
| 17 | Node Kind: directory |
| 18 | Schedule: normal |
| 19 | Last Changed Author: gclayton |
| 20 | Last Changed Rev: 154730 |
| 21 | Last Changed Date: 2012-04-13 18:42:46 -0700 (Fri, 13 Apr 2012) |
| 22 | |
| 23 | |
| 24 | lldb.pre_flight: def pre_flight(test): |
| 25 | __import__("lldb") |
| 26 | __import__("lldbtest") |
| 27 | print "\nRunning pre-flight function:" |
| 28 | print "for test case:", test |
| 29 | |
| 30 | lldb.post_flight: def post_flight(test): |
| 31 | __import__("lldb") |
| 32 | __import__("lldbtest") |
| 33 | print "\nRunning post-flight function:" |
| 34 | print "for test case:", test |
| 35 | |
| 36 | |
| 37 | Session logs for test failures/errors/unexpected successes will go into directory '2012-04-16-11_34_08' |
| 38 | Command invoked: python ./dotest.py -A x86_64 -v -c ../examples/test/.lldb-pre-post-flight functionalities/watchpoint/hello_watchpoint |
| 39 | compilers=['clang'] |
| 40 | |
| 41 | Configuration: arch=x86_64 compiler=clang |
| 42 | ---------------------------------------------------------------------- |
| 43 | Collected 2 tests |
| 44 | |
| 45 | 1: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) |
| 46 | Test a simple sequence of watchpoint creation and watchpoint hit. ... |
| 47 | Running pre-flight function: |
| 48 | for test case: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) |
| 49 | |
| 50 | Running post-flight function: |
| 51 | for test case: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) |
| 52 | ok |
| 53 | 2: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) |
| 54 | Test a simple sequence of watchpoint creation and watchpoint hit. ... |
| 55 | Running pre-flight function: |
| 56 | for test case: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) |
| 57 | |
| 58 | Running post-flight function: |
| 59 | for test case: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) |
| 60 | ok |
| 61 | |
| 62 | ---------------------------------------------------------------------- |
| 63 | Ran 2 tests in 1.584s |
| 64 | |
| 65 | OK |