]> granicus.if.org Git - clang/commitdiff
Make the Python TestRunner work for individual tests
authorDouglas Gregor <dgregor@apple.com>
Wed, 29 Jul 2009 15:32:08 +0000 (15:32 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 29 Jul 2009 15:32:08 +0000 (15:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77456 91177308-0d34-0410-b5e6-96231b3b80d8

utils/test/TestRunner.py

index 854d60bb408d4773dca3c1fe7caef9f73bc02c8b..d3ffef2b75f43a2a110a2f817f5c8e99da84057a 100755 (executable)
@@ -278,6 +278,9 @@ def main():
     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 @@ def main():
     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)