From 51d866ec9238207fb1477c69162464503824991f Mon Sep 17 00:00:00 2001 From: "timurrrr@chromium.org" Date: Tue, 7 Dec 2010 19:25:54 +0000 Subject: Add reliability runner to chrome_tests.py TEST=Works locally Review URL: http://codereview.chromium.org/5593003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68502 0039d316-1c4b-4281-b951-d872f2087c98 --- tools/valgrind/chrome_tests.py | 27 +++++++++++++++++---------- tools/valgrind/reliability/url_list.txt | 3 +++ 2 files changed, 20 insertions(+), 10 deletions(-) create mode 100644 tools/valgrind/reliability/url_list.txt (limited to 'tools') diff --git a/tools/valgrind/chrome_tests.py b/tools/valgrind/chrome_tests.py index ab3b4e2..d43ec8b 100755 --- a/tools/valgrind/chrome_tests.py +++ b/tools/valgrind/chrome_tests.py @@ -269,18 +269,24 @@ class ChromeTests: def TestGfx(self): return self.SimpleTest("chrome", "gfx_unittests") + UI_VALGRIND_ARGS = ["--timeout=180000", "--trace_children", "--indirect"] + UI_TEST_ARGS = ["--ui-test-timeout=240000", + "--ui-test-action-timeout=120000", + "--ui-test-action-max-timeout=280000", + "--ui-test-sleep-timeout=120000", + "--ui-test-terminate-timeout=120000"] def TestUI(self): return self.SimpleTest("chrome", "ui_tests", - valgrind_test_args=[ - "--timeout=180000", - "--trace_children", - "--indirect"], - cmd_args=[ - "--ui-test-timeout=240000", - "--ui-test-action-timeout=120000", - "--ui-test-action-max-timeout=280000", - "--ui-test-sleep-timeout=120000", - "--ui-test-terminate-timeout=120000"]) + valgrind_test_args=self.UI_VALGRIND_ARGS, + cmd_args=self.UI_TEST_ARGS) + + def TestReliability(self): + script_dir = path_utils.ScriptDir() + url_list_file = os.path.join(script_dir, "reliability", "url_list.txt") + return self.SimpleTest("chrome", "reliability_tests", + valgrind_test_args=self.UI_VALGRIND_ARGS, + cmd_args=(self.UI_TEST_ARGS + + ["--list=%s" % url_list_file])) def TestSync(self): return self.SimpleTest("chrome", "sync_unit_tests") @@ -399,6 +405,7 @@ class ChromeTests: "net": TestNet, "net_unittests": TestNet, "notifier": TestNotifier, "notifier_unittests": TestNotifier, "printing": TestPrinting, "printing_unittests": TestPrinting, + "reliability": TestReliability, "reliability_tests": TestReliability, "remoting": TestRemoting, "remoting_unittests": TestRemoting, "startup": TestStartup, "startup_tests": TestStartup, "sync": TestSync, "sync_unit_tests": TestSync, diff --git a/tools/valgrind/reliability/url_list.txt b/tools/valgrind/reliability/url_list.txt new file mode 100644 index 0000000..c70dd85 --- /dev/null +++ b/tools/valgrind/reliability/url_list.txt @@ -0,0 +1,3 @@ +www.google.com +www.youtube.com +www.slashdot.org -- cgit v1.1