xref: /llvm-project/lldb/examples/test/usage-pre-post-flight (revision 44d2497138095224591706b245eb10848e111c0e)
1*44d24971SJohnny Chen#
2*44d24971SJohnny Chen# The following examples first show a bad pre/post flight config file followed by a good pre/post config file.
3*44d24971SJohnny Chen#
4*44d24971SJohnny Chen
5*44d24971SJohnny Chen[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*44d24971SJohnny Chenconfig: {'pre_flight': 'I am not callable', 'post_flight': <function post_flight at 0x1071871b8>}
7*44d24971SJohnny Chenfatal error: pre_flight is not callable, exiting.
8*44d24971SJohnny Chen[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*44d24971SJohnny Chenconfig: {'pre_flight': <function pre_flight at 0x1098541b8>, 'post_flight': <function post_flight at 0x109854230>}
10*44d24971SJohnny ChenLLDB build dir: /Volumes/data/lldb/svn/ToT/build/Debug
11*44d24971SJohnny ChenLLDB-139
12*44d24971SJohnny ChenPath: /Volumes/data/lldb/svn/ToT
13*44d24971SJohnny ChenURL: https://johnny@llvm.org/svn/llvm-project/lldb/trunk
14*44d24971SJohnny ChenRepository Root: https://johnny@llvm.org/svn/llvm-project
15*44d24971SJohnny ChenRepository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
16*44d24971SJohnny ChenRevision: 154753
17*44d24971SJohnny ChenNode Kind: directory
18*44d24971SJohnny ChenSchedule: normal
19*44d24971SJohnny ChenLast Changed Author: gclayton
20*44d24971SJohnny ChenLast Changed Rev: 154730
21*44d24971SJohnny ChenLast Changed Date: 2012-04-13 18:42:46 -0700 (Fri, 13 Apr 2012)
22*44d24971SJohnny Chen
23*44d24971SJohnny Chen
24*44d24971SJohnny Chenlldb.pre_flight: def pre_flight(test):
25*44d24971SJohnny Chen    __import__("lldb")
26*44d24971SJohnny Chen    __import__("lldbtest")
27*44d24971SJohnny Chen    print "\nRunning pre-flight function:"
28*44d24971SJohnny Chen    print "for test case:", test
29*44d24971SJohnny Chen
30*44d24971SJohnny Chenlldb.post_flight: def post_flight(test):
31*44d24971SJohnny Chen    __import__("lldb")
32*44d24971SJohnny Chen    __import__("lldbtest")
33*44d24971SJohnny Chen    print "\nRunning post-flight function:"
34*44d24971SJohnny Chen    print "for test case:", test
35*44d24971SJohnny Chen
36*44d24971SJohnny Chen
37*44d24971SJohnny ChenSession logs for test failures/errors/unexpected successes will go into directory '2012-04-16-11_34_08'
38*44d24971SJohnny ChenCommand invoked: python ./dotest.py -A x86_64 -v -c ../examples/test/.lldb-pre-post-flight functionalities/watchpoint/hello_watchpoint
39*44d24971SJohnny Chencompilers=['clang']
40*44d24971SJohnny Chen
41*44d24971SJohnny ChenConfiguration: arch=x86_64 compiler=clang
42*44d24971SJohnny Chen----------------------------------------------------------------------
43*44d24971SJohnny ChenCollected 2 tests
44*44d24971SJohnny Chen
45*44d24971SJohnny Chen1: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)
46*44d24971SJohnny Chen   Test a simple sequence of watchpoint creation and watchpoint hit. ...
47*44d24971SJohnny ChenRunning pre-flight function:
48*44d24971SJohnny Chenfor test case: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)
49*44d24971SJohnny Chen
50*44d24971SJohnny ChenRunning post-flight function:
51*44d24971SJohnny Chenfor test case: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)
52*44d24971SJohnny Chenok
53*44d24971SJohnny Chen2: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)
54*44d24971SJohnny Chen   Test a simple sequence of watchpoint creation and watchpoint hit. ...
55*44d24971SJohnny ChenRunning pre-flight function:
56*44d24971SJohnny Chenfor test case: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)
57*44d24971SJohnny Chen
58*44d24971SJohnny ChenRunning post-flight function:
59*44d24971SJohnny Chenfor test case: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)
60*44d24971SJohnny Chenok
61*44d24971SJohnny Chen
62*44d24971SJohnny Chen----------------------------------------------------------------------
63*44d24971SJohnny ChenRan 2 tests in 1.584s
64*44d24971SJohnny Chen
65*44d24971SJohnny ChenOK