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" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 binary='^session_manager$', | 83 binary='^session_manager$', |
84 tag='session') | 84 tag='session') |
85 client_at.run_test('desktopui_KillRestart', binary='^chrome$', tag='chrome') | 85 client_at.run_test('desktopui_KillRestart', binary='^chrome$', tag='chrome') |
86 | 86 |
87 client_at.run_test('hardware_MemoryThroughput', num_iteration=1, test_list='18') | 87 client_at.run_test('hardware_MemoryThroughput', num_iteration=1, test_list='18') |
88 | 88 |
89 client_at.run_test('hardware_SAT', seconds=20) | 89 client_at.run_test('hardware_SAT', seconds=20) |
90 | 90 |
91 client_at.run_test('login_CryptohomeMounted', tag='success') | 91 client_at.run_test('login_CryptohomeMounted', tag='success') |
92 | 92 |
| 93 # Check volume of logging, and expect less than 50% of this machine's |
| 94 # stateful partition is used. Also make sure there's not a serious |
| 95 # problem with the patterns being too permissive by assuming most were |
| 96 # required. |
| 97 client_at.run_test('logging_LogVolume', |
| 98 constraints=['percent_stateful_used <= 50', |
| 99 'percent_unused_patterns <= 70']) |
| 100 |
93 client_at.run_test('network_DisableInterface', | 101 client_at.run_test('network_DisableInterface', |
94 iface_name='eth0', tag='eth0') | 102 iface_name='eth0', tag='eth0') |
95 client_at.run_test('network_DisableInterface', | 103 client_at.run_test('network_DisableInterface', |
96 iface_name='wlan0', tag='wlan0') | 104 iface_name='wlan0', tag='wlan0') |
97 # TODO(petkov): If Bluetooth is not available on the platform, this test will | 105 # TODO(petkov): If Bluetooth is not available on the platform, this test will |
98 # fail. Fix this once we have a way to run platform-dependent tests. | 106 # fail. Fix this once we have a way to run platform-dependent tests. |
99 client_at.run_test('network_DisableInterface', | 107 client_at.run_test('network_DisableInterface', |
100 iface_name='hci0', tag='hci0') | 108 iface_name='hci0', tag='hci0') |
101 | 109 |
102 # Run process tests | 110 # Run process tests |
103 test_name = 'platform_ProcessPrivileges' | 111 test_name = 'platform_ProcessPrivileges' |
104 process_tests = [ | 112 process_tests = [ |
105 {'process': 'candidate_window', 'user': 'chronos', 'do_login': True}, | 113 {'process': 'candidate_window', 'user': 'chronos', 'do_login': True}, |
106 {'process': 'chrome'}, | 114 {'process': 'chrome'}, |
107 {'process': 'ibus-daemon', 'user': 'chronos', 'do_login': True}, | 115 {'process': 'ibus-daemon', 'user': 'chronos', 'do_login': True}, |
108 {'process': 'ibus-gconf', 'user': 'chronos', 'do_login': True}, | 116 {'process': 'ibus-gconf', 'user': 'chronos', 'do_login': True}, |
109 {'process': 'ibus-x11', 'user': 'chronos', 'do_login': True}, | 117 {'process': 'ibus-x11', 'user': 'chronos', 'do_login': True}, |
110 # TODO(yusukes): Change 'run_as_root' to False once super-user privileges for | 118 # TODO(yusukes): Change 'run_as_root' to False once super-user privileges for |
111 # X are dropped. | 119 # X are dropped. |
112 {'process': 'X', 'run_as_root': True}, | 120 {'process': 'X', 'run_as_root': True}, |
113 ] | 121 ] |
114 | 122 |
115 for process_test in process_tests: | 123 for process_test in process_tests: |
116 client_at.run_test(test_name, tag=process_test['process'], **process_test) | 124 client_at.run_test(test_name, tag=process_test['process'], **process_test) |
117 | 125 |
OLD | NEW |