summaryrefslogtreecommitdiffstats
path: root/tools/valgrind/chrome_tests.py
diff options
context:
space:
mode:
authortimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-02 09:57:57 +0000
committertimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-02 09:57:57 +0000
commit927a672386c66a29f84f622e1d1fa2f42a45be3b (patch)
treec943ac1ea6a9acae6d11c7672258a5b801fb7766 /tools/valgrind/chrome_tests.py
parent24e1b1e81cecbc047791bc70ae5537b0fb294580 (diff)
downloadchromium_src-927a672386c66a29f84f622e1d1fa2f42a45be3b.zip
chromium_src-927a672386c66a29f84f622e1d1fa2f42a45be3b.tar.gz
chromium_src-927a672386c66a29f84f622e1d1fa2f42a45be3b.tar.bz2
Add support for client program options when using "-t cmdline"
Also add --keep_logs flag to the chrome_tests.py (was: only --tool_flags="--keep_logs") TBR=glider Review URL: http://codereview.chromium.org/7824032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99348 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/valgrind/chrome_tests.py')
-rwxr-xr-xtools/valgrind/chrome_tests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/valgrind/chrome_tests.py b/tools/valgrind/chrome_tests.py
index fff71c7..68f6b22 100755
--- a/tools/valgrind/chrome_tests.py
+++ b/tools/valgrind/chrome_tests.py
@@ -102,6 +102,8 @@ class ChromeTests:
if self._options.valgrind_tool_flags:
cmd += self._options.valgrind_tool_flags.split(" ")
+ if self._options.keep_logs:
+ cmd += ["--keep_logs"]
if valgrind_test_args != None:
for arg in valgrind_test_args:
cmd.append(arg)
@@ -466,6 +468,11 @@ def _main(_):
help="specify a valgrind tool to run the tests under")
parser.add_option("", "--tool_flags", dest="valgrind_tool_flags", default="",
help="specify custom flags for the selected valgrind tool")
+ parser.add_option("", "--keep_logs", action="store_true", default=False,
+ help="store memory tool logs in the <tool>.logs directory "
+ "instead of /tmp.\nThis can be useful for tool "
+ "developers/maintainers.\nPlease note that the <tool>"
+ ".logs directory will be clobbered on tool startup.")
# My machine can do about 120 layout tests/hour in release mode.
# Let's do 30 minutes worth per run.
# The CPU is mostly idle, so perhaps we can raise this when