Make the Python TestRunner work for individual tests
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77456 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/test/TestRunner.py b/utils/test/TestRunner.py
index 854d60b..d3ffef2 100755
--- a/utils/test/TestRunner.py
+++ b/utils/test/TestRunner.py
@@ -278,6 +278,9 @@
parser.add_option("", "--clang-cc", dest="clangcc",
help="Program to use as \"clang-cc\"",
action="store", default=None)
+ parser.add_option("", "--vg", dest="useValgrind",
+ help="Run tests under valgrind",
+ action="store_true", default=False)
(opts, args) = parser.parse_args()
if not args:
@@ -291,7 +294,8 @@
for path in args:
base = getTestOutputBase('Output', path) + '.out'
- status,output = runOneTest(path, base, opts.clang, opts.clangcc)
+ status,output = runOneTest(path, base, opts.clang, opts.clangcc,
+ opts.useValgrind)
print '%s: %s' % (TestStatus.getName(status).upper(), path)
if status == TestStatus.Fail or status == TestStatus.XPass:
print "%s TEST '%s' FAILED %s" % ('*'*20, path, '*'*20)