2 # The following examples first show a bad pre/post flight config file followed by a good pre/post config file.
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
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
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)
24 lldb.pre_flight: def pre_flight(test):
26 __import__("lldbtest")
27 print "\nRunning pre-flight function:"
28 print "for test case:", test
30 lldb.post_flight: def post_flight(test):
32 __import__("lldbtest")
33 print "\nRunning post-flight function:"
34 print "for test case:", test
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
41 Configuration: arch=x86_64 compiler=clang
42 ----------------------------------------------------------------------
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)
50 Running post-flight function:
51 for test case: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)
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)
58 Running post-flight function:
59 for test case: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)
62 ----------------------------------------------------------------------