Add a new attribute self.lldbHere, representing the fullpath to the 'lldb' executable
built locally from the source tree. This is distinguished from self.lldbExec, which
can be used by test/benchmarks to measure the performances against other debuggers.
You can use environment variable LLDB_EXEC to specify self.lldbExec to the dotest.py
test driver, otherwise it is going to be populated with self.lldbHere.
Modify the regular tests under test dir, i.e., not test/benchmarks, to use self.lldbHere.
Also modify the benchmarks tests to use self.lldbHere when it needs an 'lldb' executable
with debug info to do the performance measurements.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@138608 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/lldbtest.py b/test/lldbtest.py
index 314f788..1c158a0 100644
--- a/test/lldbtest.py
+++ b/test/lldbtest.py
@@ -475,6 +475,12 @@
if "LLDB_EXEC" in os.environ:
self.lldbExec = os.environ["LLDB_EXEC"]
+ else:
+ self.lldbExec = None
+ if "LLDB_HERE" in os.environ:
+ self.lldbHere = os.environ["LLDB_HERE"]
+ else:
+ self.lldbHere = None
# Assign the test method name to self.testMethodName.
#