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 6config: {'pre_flight': 'I am not callable', 'post_flight': <function post_flight at 0x1071871b8>} 7fatal 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 9config: {'pre_flight': <function pre_flight at 0x1098541b8>, 'post_flight': <function post_flight at 0x109854230>} 10LLDB build dir: /Volumes/data/lldb/svn/ToT/build/Debug 11LLDB-139 12Path: /Volumes/data/lldb/svn/ToT 13URL: https://johnny@llvm.org/svn/llvm-project/lldb/trunk 14Repository Root: https://johnny@llvm.org/svn/llvm-project 15Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8 16Revision: 154753 17Node Kind: directory 18Schedule: normal 19Last Changed Author: gclayton 20Last Changed Rev: 154730 21Last Changed Date: 2012-04-13 18:42:46 -0700 (Fri, 13 Apr 2012) 22 23 24lldb.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 30lldb.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 37Session logs for test failures/errors/unexpected successes will go into directory '2012-04-16-11_34_08' 38Command invoked: python ./dotest.py -A x86_64 -v -c ../examples/test/.lldb-pre-post-flight functionalities/watchpoint/hello_watchpoint 39compilers=['clang'] 40 41Configuration: arch=x86_64 compiler=clang 42---------------------------------------------------------------------- 43Collected 2 tests 44 451: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) 46 Test a simple sequence of watchpoint creation and watchpoint hit. ... 47Running pre-flight function: 48for test case: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) 49 50Running post-flight function: 51for test case: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) 52ok 532: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) 54 Test a simple sequence of watchpoint creation and watchpoint hit. ... 55Running pre-flight function: 56for test case: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) 57 58Running post-flight function: 59for test case: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) 60ok 61 62---------------------------------------------------------------------- 63Ran 2 tests in 1.584s 64 65OK