Changed the buildDsym()/buildDwarf() TestBase methods to use a plugin framework
to delegate the building of binaries to a sys.platform-sepcific plugin.

Modified the dotest.py test driver to add the "plugins" directory to the
PYTHONPATH as well.

darwin.py is the Mac OS X plugin module.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@112606 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/dotest.py b/test/dotest.py
index aae5a48..482d5af 100755
--- a/test/dotest.py
+++ b/test/dotest.py
@@ -81,6 +81,7 @@
         sys.exit(-1)
 
     os.environ["LLDB_TEST"] = scriptPath
+    pluginPath = os.path.join(scriptPath, 'plugins')
 
     base = os.path.abspath(os.path.join(scriptPath, os.pardir))
     dbgPath = os.path.join(base, 'build', 'Debug', 'LLDB.framework',
@@ -101,6 +102,7 @@
 
     sys.path.append(lldbPath)
     sys.path.append(scriptPath)
+    sys.path.append(pluginPath)
 
 
 def initTestdirs():