[cfe-commits] r77456 - /cfe/trunk/utils/test/TestRunner.py
Douglas Gregor
dgregor at apple.com
Wed Jul 29 08:32:09 PDT 2009
Author: dgregor
Date: Wed Jul 29 10:32:08 2009
New Revision: 77456
URL: http://llvm.org/viewvc/llvm-project?rev=77456&view=rev
Log:
Make the Python TestRunner work for individual tests
Modified:
cfe/trunk/utils/test/TestRunner.py
Modified: cfe/trunk/utils/test/TestRunner.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/test/TestRunner.py?rev=77456&r1=77455&r2=77456&view=diff
==============================================================================
--- cfe/trunk/utils/test/TestRunner.py (original)
+++ cfe/trunk/utils/test/TestRunner.py Wed Jul 29 10:32:08 2009
@@ -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)
More information about the cfe-commits
mailing list