[Test Suite] Properly respect --framework option
authorChris Bieneman <beanz@apple.com>
Mon, 31 Oct 2016 04:48:10 +0000 (04:48 +0000)
committerChris Bieneman <beanz@apple.com>
Mon, 31 Oct 2016 04:48:10 +0000 (04:48 +0000)
commitbd6d69987c36d947746d061421b3eb99cf86a6bb
tree7091350159b85bcb16e525415a11ab46982bad46
parent93ffabd28dfa8800317478f07d2987634e9e6e1e
[Test Suite] Properly respect --framework option

Summary:
dotest.py has a framework option that is not respected. This patch makes the framework path properly configurable via the --framework option.

This patch also adds a function to the lldbtest.Base class named "hasDarwinFramework" which allows us to not rely on the host platform to determine if a framework is present. If running on Darwin, and not building a framework, this will follow the *nix code paths which are appropriate for Darwin.

Reviewers: tfiala

Subscribers: lldb-commits, mgorny

Differential Revision: https://reviews.llvm.org/D25886

llvm-svn: 285541
lldb/packages/Python/lldbsuite/test/dotest.py
lldb/packages/Python/lldbsuite/test/lldbtest.py
lldb/test/CMakeLists.txt