diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-19 20:33:37 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-19 20:33:37 +0000 |
commit | 8667710324782b7ec86660a7ebe650a30be111ed (patch) | |
tree | ab4dca854d38186555d991fdcebe9b9a9dad2c6c /tools | |
parent | 2e028a0889a45e034177aedca54fc01b9f9166b0 (diff) | |
download | chromium_src-8667710324782b7ec86660a7ebe650a30be111ed.zip chromium_src-8667710324782b7ec86660a7ebe650a30be111ed.tar.gz chromium_src-8667710324782b7ec86660a7ebe650a30be111ed.tar.bz2 |
Add --gtest_repeat option to valgrind/chrome_tests.py
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/174071
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23730 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/valgrind/chrome_tests.py | 4 | ||||
-rwxr-xr-x | tools/valgrind/valgrind_test.py | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tools/valgrind/chrome_tests.py b/tools/valgrind/chrome_tests.py index 4ef900e..d508e0a 100755 --- a/tools/valgrind/chrome_tests.py +++ b/tools/valgrind/chrome_tests.py @@ -168,6 +168,8 @@ class ChromeTests: # Valgrind runs tests slowly, so slow tests hurt more; show elapased time # so we can find the slowpokes. cmd.append("--gtest_print_time") + if self._options.gtest_repeat: + cmd.append("--gtest_repeat=%s" % self._options.gtest_repeat) return cmd def Run(self): @@ -387,6 +389,8 @@ def _main(_): help="generate baseline data instead of validating") parser.add_option("", "--gtest_filter", help="additional arguments to --gtest_filter") + parser.add_option("", "--gtest_repeat", + help="argument for --gtest_repeat") parser.add_option("-v", "--verbose", action="store_true", default=False, help="verbose output - enable debug log messages") parser.add_option("", "--tool", dest="valgrind_tool", default="memcheck", diff --git a/tools/valgrind/valgrind_test.py b/tools/valgrind/valgrind_test.py index 5990107..8a96966 100755 --- a/tools/valgrind/valgrind_test.py +++ b/tools/valgrind/valgrind_test.py @@ -62,6 +62,8 @@ class ValgrindTool(object): "(used to normalize source paths in baseline)") self._parser.add_option("", "--gtest_filter", default="", help="which test case to run") + self._parser.add_option("", "--gtest_repeat", + help="how many times to run each test") self._parser.add_option("", "--gtest_print_time", action="store_true", default=False, help="show how long each test takes") @@ -123,6 +125,8 @@ class ValgrindTool(object): self._nocleanup_on_exit = self._options.nocleanup_on_exit if self._options.gtest_filter != "": self._args.append("--gtest_filter=%s" % self._options.gtest_filter) + if self._options.gtest_repeat: + self._args.append("--gtest_repeat=%s" % self._options.gtest_repeat) if self._options.gtest_print_time: self._args.append("--gtest_print_time"); |