aboutsummaryrefslogtreecommitdiff
path: root/utils/test/MultiTestRunner.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-04 02:53:50 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-04 02:53:50 +0000
commit6ac8b87ca69a4c0289b0b9488b66e5ac83013d45 (patch)
treeb8dc77335a46a954c00c0d9eb644bc78794ccbf9 /utils/test/MultiTestRunner.py
parent4e71ddb873bacaf44407291609fe3a6fd9bf8840 (diff)
Add --vg-arg option to clang test runner.
- Passes additional argument through to valgrind. Also, don't run valgrind with --leak-check=no by default. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80981 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/test/MultiTestRunner.py')
-rwxr-xr-xutils/test/MultiTestRunner.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/test/MultiTestRunner.py b/utils/test/MultiTestRunner.py
index c94f114e3c..6e15f1cd8f 100755
--- a/utils/test/MultiTestRunner.py
+++ b/utils/test/MultiTestRunner.py
@@ -257,6 +257,9 @@ def main():
group.add_option("", "--vg", dest="useValgrind",
help="Run tests under valgrind",
action="store_true", default=False)
+ group.add_option("", "--vg-arg", dest="valgrindArgs",
+ help="Specify an extra argument for valgrind",
+ type=str, action="append", default=[])
group.add_option("", "--time-tests", dest="timeTests",
help="Track elapsed wall time for each test",
action="store_true", default=False)
@@ -320,6 +323,7 @@ def main():
cfg.clang = opts.clang
cfg.clangcc = opts.clangcc
cfg.useValgrind = opts.useValgrind
+ cfg.valgrindArgs = opts.valgrindArgs
cfg.useExternalShell = opts.useExternalShell
# FIXME: It could be worth loading these in parallel with testing.