Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: server/site_tests/suite_Nightly/control

Issue 2830016: Add boot time tests to nightly suite, and run multiple iterations (Closed) Base URL: ssh://gitrw.chromium.org/autotest.git
Patch Set: rename run_client_tests to something hopefully more appropriate Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « server/site_tests/platform_BootPerfServer/platform_BootPerfServer.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 AUTHOR = "Chrome OS Team" 5 AUTHOR = "Chrome OS Team"
6 NAME = "Nightly" 6 NAME = "Nightly"
7 TIME = "LONG" 7 TIME = "LONG"
8 TEST_CATEGORY = "Functional" 8 TEST_CATEGORY = "Functional"
9 TEST_CLASS = "suite" 9 TEST_CLASS = "suite"
10 TEST_TYPE = "server" 10 TEST_TYPE = "server"
11 11
12 DOC = """ 12 DOC = """
13 This test suite runs automated tests that should all pass and that, together 13 This test suite runs automated tests that should all pass and that, together
14 with the BuildVerify suite, verify that all major features in the build are 14 with the BuildVerify suite, verify that all major features in the build are
15 fully functional. These are meant to run nightly in less than 8 hours. 15 fully functional. These are meant to run nightly in less than 8 hours.
16 """ 16 """
17 17
18 18
19 # Run server tests 19 # List of client tests with parameters
20
21 # All client tests whose parameters
22 TESTS = [ 20 TESTS = [
23 ('compilebench', {}), 21 ('compilebench', {}),
24 ('dbench', {}), 22 ('dbench', {}),
25 ('desktopui_WindowManagerFocusNewWindows', {}), 23 ('desktopui_WindowManagerFocusNewWindows', {}),
26 ('desktopui_WindowManagerHotkeys', {}), 24 ('desktopui_WindowManagerHotkeys', {}),
27 ('disktest', {}), 25 ('disktest', {}),
28 ('firmware_VbootCrypto', {}), 26 ('firmware_VbootCrypto', {}),
29 ('fsx', {}), 27 ('fsx', {}),
30 ('gl_Bench', {}), 28 ('gl_Bench', {}),
31 ('graphics_GLAPICheck', {}), 29 ('graphics_GLAPICheck', {}),
(...skipping 23 matching lines...) Expand all
55 53
56 # Assign tests with its argv to machines in a round-robin way. 54 # Assign tests with its argv to machines in a round-robin way.
57 index = 0 55 index = 0
58 for test_with_argv in TESTS: 56 for test_with_argv in TESTS:
59 m_index = index % len(machines) 57 m_index = index % len(machines)
60 test_list = test_dict.setdefault(machines[m_index], []) 58 test_list = test_dict.setdefault(machines[m_index], [])
61 test_list.append(test_with_argv) 59 test_list.append(test_with_argv)
62 index += 1 60 index += 1
63 61
64 62
65 def run_client_test(machine): 63 def run_assigned_tests(machine):
66 client = hosts.create_host(machine) 64 client = hosts.create_host(machine)
67 client_at = autotest.Autotest(client) 65 client_at = autotest.Autotest(client)
68 test_list = test_dict[machine] 66 test_list = test_dict[machine]
69 for test, argv in test_list: 67 for test, argv in test_list:
70 client_at.run_test(test, **argv) 68 client_at.run_test(test, **argv)
69 job.run_test("platform_BootPerfServer", host=client, iterations=4)
71 70
72 71 job.parallel_on_machines(run_assigned_tests, machines)
73 job.parallel_on_machines(run_client_test, machines)
74
OLDNEW
« no previous file with comments | « server/site_tests/platform_BootPerfServer/platform_BootPerfServer.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698