xref: /openbsd-src/gnu/llvm/lldb/examples/test/usage-pre-post-flight (revision 061da546b983eb767bad15e67af1174fb0bcf31c)
1*061da546Spatrick#
2*061da546Spatrick# The following examples first show a bad pre/post flight config file followed by a good pre/post config file.
3*061da546Spatrick#
4*061da546Spatrick
5*061da546Spatrick[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*061da546Spatrickconfig: {'pre_flight': 'I am not callable', 'post_flight': <function post_flight at 0x1071871b8>}
7*061da546Spatrickfatal error: pre_flight is not callable, exiting.
8*061da546Spatrick[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*061da546Spatrickconfig: {'pre_flight': <function pre_flight at 0x1098541b8>, 'post_flight': <function post_flight at 0x109854230>}
10*061da546SpatrickLLDB build dir: /Volumes/data/lldb/svn/ToT/build/Debug
11*061da546SpatrickLLDB-139
12*061da546SpatrickPath: /Volumes/data/lldb/svn/ToT
13*061da546SpatrickURL: https://johnny@llvm.org/svn/llvm-project/lldb/trunk
14*061da546SpatrickRepository Root: https://johnny@llvm.org/svn/llvm-project
15*061da546SpatrickRepository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
16*061da546SpatrickRevision: 154753
17*061da546SpatrickNode Kind: directory
18*061da546SpatrickSchedule: normal
19*061da546SpatrickLast Changed Author: gclayton
20*061da546SpatrickLast Changed Rev: 154730
21*061da546SpatrickLast Changed Date: 2012-04-13 18:42:46 -0700 (Fri, 13 Apr 2012)
22*061da546Spatrick
23*061da546Spatrick
24*061da546Spatricklldb.pre_flight: def pre_flight(test):
25*061da546Spatrick    __import__("lldb")
26*061da546Spatrick    __import__("lldbtest")
27*061da546Spatrick    print "\nRunning pre-flight function:"
28*061da546Spatrick    print "for test case:", test
29*061da546Spatrick
30*061da546Spatricklldb.post_flight: def post_flight(test):
31*061da546Spatrick    __import__("lldb")
32*061da546Spatrick    __import__("lldbtest")
33*061da546Spatrick    print "\nRunning post-flight function:"
34*061da546Spatrick    print "for test case:", test
35*061da546Spatrick
36*061da546Spatrick
37*061da546SpatrickSession logs for test failures/errors/unexpected successes will go into directory '2012-04-16-11_34_08'
38*061da546SpatrickCommand invoked: python ./dotest.py -A x86_64 -v -c ../examples/test/.lldb-pre-post-flight functionalities/watchpoint/hello_watchpoint
39*061da546Spatrickcompilers=['clang']
40*061da546Spatrick
41*061da546SpatrickConfiguration: arch=x86_64 compiler=clang
42*061da546Spatrick----------------------------------------------------------------------
43*061da546SpatrickCollected 2 tests
44*061da546Spatrick
45*061da546Spatrick1: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)
46*061da546Spatrick   Test a simple sequence of watchpoint creation and watchpoint hit. ...
47*061da546SpatrickRunning pre-flight function:
48*061da546Spatrickfor test case: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)
49*061da546Spatrick
50*061da546SpatrickRunning post-flight function:
51*061da546Spatrickfor test case: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)
52*061da546Spatrickok
53*061da546Spatrick2: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)
54*061da546Spatrick   Test a simple sequence of watchpoint creation and watchpoint hit. ...
55*061da546SpatrickRunning pre-flight function:
56*061da546Spatrickfor test case: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)
57*061da546Spatrick
58*061da546SpatrickRunning post-flight function:
59*061da546Spatrickfor test case: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)
60*061da546Spatrickok
61*061da546Spatrick
62*061da546Spatrick----------------------------------------------------------------------
63*061da546SpatrickRan 2 tests in 1.584s
64*061da546Spatrick
65*061da546SpatrickOK