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.
Why do we need to make this -L$(lib_dir)/../lib instead of the original -L$(lib_dir)? This breaks cases where lib_dir is lib64 and not lib