diff options
author | Zachary Turner <zturner@google.com> | 2015-10-27 20:12:05 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-10-27 20:12:05 +0000 |
commit | 0a0490b1520e96b728448b8c43ca873fcaa809dc (patch) | |
tree | d86351542362fcd3187d40fdfb0ccb939ac2f99a /lldb/test/use_lldb_suite.py | |
parent | 235acde953856a52b692cecf2c0484f2c30fdf43 (diff) | |
download | bcm5719-llvm-0a0490b1520e96b728448b8c43ca873fcaa809dc.tar.gz bcm5719-llvm-0a0490b1520e96b728448b8c43ca873fcaa809dc.zip |
Rename `lldb_shared` to `use_lldb_suite`.
llvm-svn: 251444
Diffstat (limited to 'lldb/test/use_lldb_suite.py')
-rw-r--r-- | lldb/test/use_lldb_suite.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lldb/test/use_lldb_suite.py b/lldb/test/use_lldb_suite.py new file mode 100644 index 00000000000..daeafe80dd5 --- /dev/null +++ b/lldb/test/use_lldb_suite.py @@ -0,0 +1,22 @@ +import inspect +import os +import sys + +def find_lldb_root(): + lldb_root = os.path.dirname(inspect.getfile(inspect.currentframe())) + while True: + lldb_root = os.path.dirname(lldb_root) + if lldb_root is None: + return None + + test_path = os.path.join(lldb_root, "lldb.root") + if os.path.isfile(test_path): + return lldb_root + return None + +lldb_root = find_lldb_root() +if lldb_root is not None: + import imp + module = imp.find_module("use_lldb_suite_root", [lldb_root]) + if module is not None: + imp.load_module("use_lldb_suite_root", *module)
\ No newline at end of file |