diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-07-29 15:32:08 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-07-29 15:32:08 +0000 |
commit | c50315b9ac611cb4873d4d3192bcb4970b96b98e (patch) | |
tree | ae2a4ce7b409c975f14e98c20f0a76dabbf7cd95 | |
parent | ddc4b81aab0d423eb69fd03dd1028b42b70b4f37 (diff) |
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
-rwxr-xr-x | utils/test/TestRunner.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/test/TestRunner.py b/utils/test/TestRunner.py index 854d60bb40..d3ffef2b75 100755 --- a/utils/test/TestRunner.py +++ b/utils/test/TestRunner.py @@ -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) |