aboutsummaryrefslogtreecommitdiff
path: root/utils/test/MultiTestRunner.py
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-06-05 23:57:17 +0000
committerDouglas Gregor <dgregor@apple.com>2009-06-05 23:57:17 +0000
commit798651952788e52acaa841f61c3694e6e4a823cf (patch)
tree46ac580fcc5dc46cdd07495d817889451b852ce1 /utils/test/MultiTestRunner.py
parent412485d6659214285607aacd34ab2a25cfb6a67a (diff)
Switch CMake testing over to use Daniels new(er) Python-based infrastructure.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/test/MultiTestRunner.py')
-rwxr-xr-xutils/test/MultiTestRunner.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/utils/test/MultiTestRunner.py b/utils/test/MultiTestRunner.py
index 57650f9e27..5dde1bd775 100755
--- a/utils/test/MultiTestRunner.py
+++ b/utils/test/MultiTestRunner.py
@@ -249,6 +249,10 @@ def main():
parser.add_option("", "--debug-do-not-test", dest="debugDoNotTest",
help="DEBUG: Skip running actual test script",
action="store_true", default=False)
+ parser.add_option("", "--path", dest="path",
+ help="Additional paths to add to testing environment",
+ action="store", type=str, default=None)
+
(opts, args) = parser.parse_args()
if not args:
@@ -269,7 +273,10 @@ def main():
random.shuffle(tests)
if opts.maxTests is not None:
tests = tests[:opts.maxTests]
-
+ if opts.path is not None:
+ os.environ["PATH"] = opts.path + ":" + os.environ["PATH"];
+ print "Current PATH is: ", os.environ["PATH"]
+
extra = ''
if len(tests) != len(allTests):
extra = ' of %d'%(len(allTests),)