| OLD | NEW |
| 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 Loading... |
| 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 | |
| OLD | NEW |