xref: /openbsd-src/gnu/llvm/lldb/examples/test/.lldb-loggings (revision be691f3bb6417f04a68938fadbcaee2d5795e764)
1061da546Spatrickdef pre_flight(self):
2061da546Spatrick    import os
3061da546Spatrick    import lldb
4061da546Spatrick    import lldbtest
5061da546Spatrick
6*be691f3bSpatrick    dname = os.path.join(os.environ["LLDB_TEST"])
7061da546Spatrick    if not os.path.isdir(dname):
8061da546Spatrick        os.mkdir(dname)
9061da546Spatrick    dest = os.path.join(dname, "lldb_log-%s-%s-%s.txt" % (self.getArchitecture(), self.getCompiler(), self.id()))
10061da546Spatrick    print "\nEnabling lldb logging for test case:", self
11061da546Spatrick    print "with log destination:", dest
12061da546Spatrick    self.runCmd("log enable -f %s gdb-remote packets process" % dest)
13061da546Spatrick
14061da546Spatrick#def post_flight(test):
15061da546Spatrick#    __import__("lldb")
16061da546Spatrick#    __import__("lldbtest")
17061da546Spatrick#    print "\nRunning post-flight function:"
18061da546Spatrick#    print "for test case:", test
19061da546Spatrick
20