summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2017-03-14 20:04:46 +0000
committerChris Bieneman <beanz@apple.com>2017-03-14 20:04:46 +0000
commit265ca535ab1c208749c05fbbb2d18ddd0047dd65 (patch)
treecff3ad25dc01a4f7fa9b0ee686860700ba6ad758 /lldb/packages/Python/lldbsuite/test
parent32f6b5129f21d7e0e0e654d143a02b56509e74ea (diff)
downloadbcm5719-llvm-265ca535ab1c208749c05fbbb2d18ddd0047dd65.tar.gz
bcm5719-llvm-265ca535ab1c208749c05fbbb2d18ddd0047dd65.zip
[CMake] Override debugserver to use the build tree on Darwin
This patch adds support to the test suite for overriding the path to debugserver, and uses the override to point to the build tree's debugserver on Darwin. llvm-svn: 297776
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest.py3
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest_args.py4
2 files changed, 7 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py
index 6b6b2574e63..122c51432fc 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest.py
@@ -364,6 +364,9 @@ def parseOptionsAndInitTestdirs():
if args.executable:
lldbtest_config.lldbExec = os.path.realpath(args.executable)
+
+ if args.server:
+ os.environ['LLDB_DEBUGSERVER_PATH'] = args.server
if args.excluded:
for excl_file in args.excluded:
diff --git a/lldb/packages/Python/lldbsuite/test/dotest_args.py b/lldb/packages/Python/lldbsuite/test/dotest_args.py
index fc896d53c0b..29150562d6d 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest_args.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest_args.py
@@ -124,6 +124,10 @@ def create_parser():
metavar='executable-path',
help='The path to the lldb executable')
group.add_argument(
+ '--server',
+ metavar='server-path',
+ help='The path to the debug server executable to use')
+ group.add_argument(
'-s',
metavar='name',
help='Specify the name of the dir created to store the session files of tests with errored or failed status. If not specified, the test driver uses the timestamp as the session dir name')
OpenPOWER on IntegriCloud