This website requires JavaScript.
Explore
Help
Sign In
maxjhandsome
/
llvm-project
forked from
OSchip/llvm-project
Watch
1
Star
0
Fork
You've already forked llvm-project
0
Code
Issues
Pull Requests
Packages
Releases
Wiki
Activity
ca1d2209c4
llvm-project
/
lldb
/
test
/
dotest.py
5 lines
72 B
Python
Raw
Normal View
History
Unescape
Escape
Rename `lldb_shared` to `use_lldb_suite`. llvm-svn: 251444
2015-10-28 04:12:05 +08:00
import
use_lldb_suite
Introduce a mechanism for reusing Python modules out of tree. Right now our Python code does not all share a common root. Tests and scripts both contain python code that cannot take advantage of reusability since they are unrelated siblings of each other. In particular, this presents a problem for wanting to use third party packages from both sides, since it does not make sense to copy the module into both places. This patch solves this by introducing a script lldb_shared.py which is a very lightweight script that just searches up the tree until it finds a root, and then imports a module from there. That module knows how to find all of the shared code that LLDB uses, and adjusts sys.path accordingly to make them all visible. llvm-svn: 250858
2015-10-21 05:05:57 +08:00
Move lldb/test to lldb/packages/Python/lldbsuite/test. This is the conclusion of an effort to get LLDB's Python code structured into a bona-fide Python package. This has a number of benefits, but most notably the ability to more easily share Python code between different but related pieces of LLDB's Python infrastructure (for example, `scripts` can now share code with `test`). llvm-svn: 251532
2015-10-29 01:43:26 +08:00
import
lldbsuite
.
test
lldbsuite
.
test
.
run_suite
(
)