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 = "BVT" | 6 NAME = "BVT" |
7 TIME = "SHORT" | 7 TIME = "SHORT" |
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 verify | 13 This test suite runs automated tests that should all pass and that verify |
14 that a build has some minimal functionality. These are meant to run quickly | 14 that a build has some minimal functionality. These are meant to run quickly |
15 in less than 30 minutes and should maximize coverage. | 15 in less than 30 minutes and should maximize coverage. |
16 """ | 16 """ |
17 | 17 |
18 from autotest_lib.client.bin import site_logging | 18 from autotest_lib.client.cros import cros_logging |
19 from autotest_lib.server import site_host_attributes | 19 from autotest_lib.server import site_host_attributes |
20 | 20 |
21 TESTS = [ | 21 TESTS = [ |
22 ('platform_FilePerms', {}), | 22 ('platform_FilePerms', {}), |
23 ('platform_OSLimits', {}), | 23 ('platform_OSLimits', {}), |
24 ('platform_PartitionCheck', {}), | 24 ('platform_PartitionCheck', {}), |
25 ('build_RootFilesystemSize', {}), | 25 ('build_RootFilesystemSize', {}), |
26 ('desktopui_ChromeFirstRender', {}), | 26 ('desktopui_ChromeFirstRender', {}), |
27 ('desktopui_FlashSanityCheck', {}), | 27 ('desktopui_FlashSanityCheck', {}), |
28 ('desktopui_KillRestart', {'binary': '^chrome$', | 28 ('desktopui_KillRestart', {'binary': '^chrome$', |
(...skipping 21 matching lines...) Expand all Loading... |
50 | 50 |
51 def run_tests(machine): | 51 def run_tests(machine): |
52 client = hosts.create_host(machine) | 52 client = hosts.create_host(machine) |
53 | 53 |
54 client_at = autotest.Autotest(client) | 54 client_at = autotest.Autotest(client) |
55 for test, argv in TESTS: | 55 for test, argv in TESTS: |
56 client_at.run_test(test, **argv) | 56 client_at.run_test(test, **argv) |
57 | 57 |
58 # Disable log rotation while shutting down just in case | 58 # Disable log rotation while shutting down just in case |
59 # platform_Shutdown needs to find logs. | 59 # platform_Shutdown needs to find logs. |
60 log_pauser = site_logging.LogRotationPauser(client) | 60 log_pauser = cros_logging.LogRotationPauser(client) |
61 log_pauser.begin() | 61 log_pauser.begin() |
62 client.reboot() | 62 client.reboot() |
63 client_at.run_test('platform_Shutdown') | 63 client_at.run_test('platform_Shutdown') |
64 log_pauser.end() | 64 log_pauser.end() |
65 | 65 |
66 | 66 |
67 job.parallel_on_machines(run_tests, machines) | 67 job.parallel_on_machines(run_tests, machines) |
OLD | NEW |