| OLD | NEW |
| 1 # -*- coding: utf-8 -*- | 1 # -*- coding: utf-8 -*- |
| 2 # | 2 # |
| 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # DOCUMENTATION: | 7 # DOCUMENTATION: |
| 8 # | 8 # |
| 9 # Define below an ordered list if tests for execution on factory | 9 # Define below an ordered list if tests for execution on factory |
| 10 # assembly lines. This list can be customized for specific factory | 10 # assembly lines. This list can be customized for specific factory |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 # -- END OF CUSTOMIZATION VARIABLES -------------------------------- | 30 # -- END OF CUSTOMIZATION VARIABLES -------------------------------- |
| 31 | 31 |
| 32 | 32 |
| 33 # TEST ORDERING: Tests in the test_list will be run in the order | 33 # TEST ORDERING: Tests in the test_list will be run in the order |
| 34 # below, unless the operator interrupts the flow via keyboard | 34 # below, unless the operator interrupts the flow via keyboard |
| 35 # shortcut. To cause immediate execution of the run-in tests, for | 35 # shortcut. To cause immediate execution of the run-in tests, for |
| 36 # example, reorder runin to occur as the first test in the test_list. | 36 # example, reorder runin to occur as the first test in the test_list. |
| 37 | 37 |
| 38 TEST_LIST = [ | 38 TEST_LIST = [ |
| 39 |
| 39 OperatorTest( | 40 OperatorTest( |
| 40 label_en='start', | 41 label_en='start', |
| 41 label_zw='開始', | 42 label_zw='開始', |
| 42 autotest_name='factory_Dummy', | 43 autotest_name='factory_Dummy', |
| 43 kbd_shortcut='e', | 44 kbd_shortcut='e', |
| 44 dargs={'quit_key':ord(' '), | 45 dargs={'quit_key':ord(' '), |
| 45 'msg':'Hit SPACE to start testing...\n按 "空白鍵" 開始測試...'}), | 46 'msg':'Hit SPACE to start testing...\n按 "空白鍵" 開始測試...'}), |
| 46 OperatorTest( | 47 |
| 47 label_en='sync', | 48 # The factory_ScriptWrapper allows interactive execution of |
| 48 label_zw='同步', | 49 # external scripts or programs with the output displayed in the |
| 49 autotest_name='factory_ScriptWrapper', | 50 # testing widget area of the screen. This is useful, for example, |
| 50 kbd_shortcut='s', | 51 # to sync-up with the assembly line IT system. |
| 51 dargs={'cmdline': job.autodir + | 52 # OperatorTest( |
| 52 '/site_tests/factory_ScriptWrapper/dummy.sh'}), | 53 # label_en='sync', |
| 54 # label_zw='同步', |
| 55 # autotest_name='factory_ScriptWrapper', |
| 56 # kbd_shortcut='s', |
| 57 # dargs={'cmdline': job.autodir + |
| 58 # '/site_tests/factory_ScriptWrapper/dummy.sh'}), |
| 59 |
| 53 AutomatedSequence( | 60 AutomatedSequence( |
| 54 label_en='run-in', | 61 label_en='run-in', |
| 55 label_zw='燒機測試', | 62 label_zw='燒機測試', |
| 56 subtest_tag_prefix='runin', | 63 subtest_tag_prefix='runin', |
| 57 kbd_shortcut='r', | 64 kbd_shortcut='r', |
| 58 subtest_list=[ | 65 subtest_list=[ |
| 59 | 66 |
| 60 # THIS IS A GOOGLE REQUIRED TEST. | 67 # THIS IS A GOOGLE REQUIRED TEST. |
| 61 # PLEASE DO NOT REMOVE THIS TEST IN PRODUCTION RELEASES. | 68 # PLEASE DO NOT REMOVE THIS TEST IN PRODUCTION RELEASES. |
| 62 # Match HW-Qual-ID by setting ignored_cids. | 69 # Match HW-Qual-ID by setting ignored_cids. |
| 63 AutomatedSubTest( | 70 AutomatedSubTest( |
| 64 label_en='hw-qual-id matching', | 71 label_en='hw-qual-id matching', |
| 65 label_zw='型號匹配', | 72 label_zw='型號匹配', |
| 66 autotest_name='hardware_Components', | 73 autotest_name='hardware_Components', |
| 74 unique_name='hw-qual-id-match', |
| 67 dargs={'approved_dbs':'qualified_components*', | 75 dargs={'approved_dbs':'qualified_components*', |
| 68 'ignored_cids':[ | 76 'ignored_cids':[ |
| 69 'hash_ro_firmware', | 77 'hash_ro_firmware', |
| 70 'part_id_bios', | 78 'part_id_bios', |
| 71 'part_id_hwqual', | 79 'part_id_hwqual', |
| 72 'version_rw_firmware']}), | 80 'version_rw_firmware']}), |
| 73 | 81 |
| 74 AutomatedSubTest( | 82 AutomatedSubTest( |
| 75 label_en='gpio switch check', | 83 label_en='gpio switch check', |
| 76 label_zw='檢查 gpio 開關', | 84 label_zw='檢查 gpio 開關', |
| 77 autotest_name='hardware_GPIOSwitches'), | 85 autotest_name='hardware_GPIOSwitches'), |
| 86 |
| 78 AutomatedSubTest( | 87 AutomatedSubTest( |
| 79 label_en='system stress', | 88 label_en='system stress', |
| 80 label_zw='壓力測試', | 89 label_zw='壓力測試', |
| 81 autotest_name='hardware_SAT', | 90 autotest_name='hardware_SAT', |
| 82 dargs={'seconds': _SAT_DURATION_SECS}, | 91 dargs={'seconds': _SAT_DURATION_SECS}, |
| 83 drop_caches=True), | 92 drop_caches=True), |
| 93 |
| 84 AutomatedSubTest( | 94 AutomatedSubTest( |
| 85 label_en='graphics', | 95 label_en='graphics', |
| 86 label_zw='圖型', | 96 label_zw='圖型', |
| 87 autotest_name='graphics_GLBench'), | 97 autotest_name='graphics_GLBench'), |
| 98 |
| 88 AutomatedRebootSubTest( | 99 AutomatedRebootSubTest( |
| 89 label_en='reboot (%s times)' % _REBOOT_SEQ_ITERATIONS, | 100 label_en='reboot (%s times)' % _REBOOT_SEQ_ITERATIONS, |
| 90 label_zw='重新開機 (%s 次)' % _REBOOT_SEQ_ITERATIONS, | 101 label_zw='重新開機 (%s 次)' % _REBOOT_SEQ_ITERATIONS, |
| 91 iterations=_REBOOT_SEQ_ITERATIONS)]), | 102 iterations=_REBOOT_SEQ_ITERATIONS)]), |
| 103 |
| 92 OperatorTest( | 104 OperatorTest( |
| 93 label_en='keyboard', | 105 label_en='keyboard', |
| 94 label_zw='鍵盤', | 106 label_zw='鍵盤', |
| 95 autotest_name='factory_Keyboard', | 107 autotest_name='factory_Keyboard', |
| 96 kbd_shortcut='k', | 108 kbd_shortcut='k', |
| 97 dargs={'layout':'en_us'}), | 109 dargs={'layout':'en_us'}), |
| 110 |
| 98 OperatorTest( | 111 OperatorTest( |
| 99 label_en='touchpad', | 112 label_en='touchpad', |
| 100 label_zw='觸控板', | 113 label_zw='觸控板', |
| 101 autotest_name='factory_Touchpad', | 114 autotest_name='factory_Touchpad', |
| 102 kbd_shortcut='t'), | 115 kbd_shortcut='t'), |
| 116 |
| 103 OperatorTest( | 117 OperatorTest( |
| 104 label_en='leds', | 118 label_en='leds', |
| 105 label_zw='機身側燈', | 119 label_zw='機身側燈', |
| 106 autotest_name='factory_Leds', | 120 autotest_name='factory_Leds', |
| 107 kbd_shortcut='l', | 121 kbd_shortcut='l', |
| 108 dargs={'led_ctl_path': | 122 dargs={'led_ctl_path': |
| 109 '/usr/local/autotest/site_tests/factory_Leds/src/ec_ctl'}), | 123 '/usr/local/autotest/site_tests/factory_Leds/src/ec_ctl'}), |
| 124 |
| 110 OperatorTest( | 125 OperatorTest( |
| 111 label_en='display', | 126 label_en='display', |
| 112 label_zw='顯示', | 127 label_zw='顯示', |
| 113 autotest_name='factory_Display', | 128 autotest_name='factory_Display', |
| 114 kbd_shortcut='m'), | 129 kbd_shortcut='m'), |
| 130 |
| 115 OperatorTest( | 131 OperatorTest( |
| 116 label_en='x-display', | 132 label_en='x-display', |
| 117 label_zw='外接顯示', | 133 label_zw='外接顯示', |
| 118 autotest_name='factory_ExtDisplay', | 134 autotest_name='factory_ExtDisplay', |
| 119 kbd_shortcut='n', | 135 kbd_shortcut='n', |
| 120 dargs={'has_audio':True, | 136 dargs={'has_audio':True, |
| 121 'sample':'deps/factory/fhorn.wav'}), | 137 'sample':'deps/factory/fhorn.wav'}), |
| 138 |
| 122 OperatorTest( | 139 OperatorTest( |
| 123 label_en='camera', | 140 label_en='camera', |
| 124 label_zw='相機', | 141 label_zw='相機', |
| 125 autotest_name='factory_Camera', | 142 autotest_name='factory_Camera', |
| 126 kbd_shortcut='c'), | 143 kbd_shortcut='c'), |
| 144 |
| 127 OperatorTest( | 145 OperatorTest( |
| 128 label_en='audio', | 146 label_en='audio', |
| 129 label_zw='音源裝置', | 147 label_zw='音源裝置', |
| 130 autotest_name='factory_Audio', | 148 autotest_name='factory_Audio', |
| 131 kbd_shortcut='a', | 149 kbd_shortcut='a', |
| 132 dargs={'sample':'deps/factory/fhorn.wav'}), | 150 dargs={'sample':'deps/factory/fhorn.wav'}), |
| 151 |
| 133 OperatorTest( | 152 OperatorTest( |
| 134 label_en='usb', | 153 label_en='usb', |
| 135 autotest_name='factory_ExternalStorage', | 154 autotest_name='factory_ExternalStorage', |
| 136 kbd_shortcut='u', | 155 kbd_shortcut='u', |
| 137 dargs={'media':'USB'}), | 156 dargs={'media':'USB'}), |
| 157 |
| 138 OperatorTest( | 158 OperatorTest( |
| 139 label_en='sd', | 159 label_en='sd', |
| 140 autotest_name='factory_ExternalStorage', | 160 autotest_name='factory_ExternalStorage', |
| 141 kbd_shortcut='d', | 161 kbd_shortcut='d', |
| 142 dargs={'media':'SD'}), | 162 dargs={'media':'SD'}), |
| 143 OperatorTest( | 163 |
| 144 label_en='bluetooth', | 164 # OperatorTest( |
| 145 label_zw='藍芽', | 165 # label_en='bluetooth', |
| 146 autotest_name='factory_Dummy', | 166 # label_zw='藍芽', |
| 147 kbd_shortcut='o', | 167 # autotest_name='factory_Dummy', |
| 148 dargs={'msg':'bluetooth test, one day...'}), | 168 # kbd_shortcut='o', |
| 149 OperatorTest( | 169 # dargs={'msg':'bluetooth test, one day...'}), |
| 150 label_en='3g', | 170 |
| 151 label_zw='3G上網', | 171 # OperatorTest( |
| 152 autotest_name='factory_Dummy', | 172 # label_en='3g', |
| 153 kbd_shortcut='g', | 173 # label_zw='3G上網', |
| 154 dargs={'msg':'3g test, one day...'}), | 174 # autotest_name='factory_Dummy', |
| 155 OperatorTest( | 175 # kbd_shortcut='g', |
| 156 label_en='wifi', | 176 # dargs={'msg':'3g test, one day...'}), |
| 157 label_zw='無線上網', | 177 |
| 158 autotest_name='factory_Dummy', | 178 # OperatorTest( |
| 159 kbd_shortcut='w', | 179 # label_en='wifi', |
| 160 dargs={'msg':'wifi test, one day...'}), | 180 # label_zw='無線上網', |
| 181 # autotest_name='factory_Dummy', |
| 182 # kbd_shortcut='w', |
| 183 # dargs={'msg':'wifi test, one day...'}), |
| 184 |
| 161 OperatorTest( | 185 OperatorTest( |
| 162 label_en='light sensor', | 186 label_en='light sensor', |
| 163 label_zw='光传感器', | 187 label_zw='光传感器', |
| 164 autotest_name='factory_LightSensor', | 188 autotest_name='factory_LightSensor', |
| 165 dargs={'lux_max':1000, 'lux_min':1}, | 189 dargs={'lux_max':1000, 'lux_min':1}, |
| 166 kbd_shortcut='i'), | 190 kbd_shortcut='i'), |
| 167 | 191 |
| 168 # THIS IS A GOOGLE REQUIRED TEST. | 192 # THIS IS A GOOGLE REQUIRED TEST. |
| 169 # PLEASE DO NOT REMOVE THIS TEST IN PRODUCTION RELEASES. | 193 # PLEASE DO NOT REMOVE THIS TEST IN PRODUCTION RELEASES. |
| 170 OperatorTest( | 194 OperatorTest( |
| 171 label_en='devrec', | 195 label_en='devrec', |
| 172 label_zw='還原模式', | 196 label_zw='還原模式', |
| 173 autotest_name='factory_DeveloperRecovery', | 197 autotest_name='factory_DeveloperRecovery', |
| 174 kbd_shortcut='b', | 198 kbd_shortcut='b', |
| 175 dargs={'layout':'devrec'}), | 199 dargs={'layout':'devrec'}), |
| 176 | 200 |
| 177 # THIS IS A GOOGLE REQUIRED TEST. | 201 # THIS IS A GOOGLE REQUIRED TEST. |
| 178 # PLEASE DO NOT REMOVE THIS TEST IN PRODUCTION RELEASES. | 202 # PLEASE DO NOT REMOVE THIS TEST IN PRODUCTION RELEASES. |
| 179 AutomatedSequence( | 203 AutomatedSequence( |
| 180 label_en='final', | 204 label_en='final', |
| 181 label_zw='最後測試', | 205 label_zw='最後測試', |
| 182 subtest_tag_prefix='final_stage_1', | 206 subtest_tag_prefix='final_stage_1', |
| 183 kbd_shortcut='f', | 207 kbd_shortcut='f', |
| 184 subtest_list=[ | 208 subtest_list=[ |
| 209 |
| 185 AutomatedSubTest( | 210 AutomatedSubTest( |
| 186 label_en='write GBB', | 211 label_en='write GBB', |
| 187 label_zw='寫入GBB', | 212 label_zw='寫入GBB', |
| 188 autotest_name='factory_WriteGBB'), | 213 autotest_name='factory_WriteGBB'), |
| 214 |
| 189 AutomatedRebootSubTest( | 215 AutomatedRebootSubTest( |
| 190 label_en='reboot', | 216 label_en='reboot', |
| 191 label_zw='重新開機', | 217 label_zw='重新開機', |
| 192 iterations=1), | 218 iterations=1), |
| 219 |
| 193 AutomatedSubTest( | 220 AutomatedSubTest( |
| 194 label_en='component validation', | 221 label_en='component validation', |
| 195 label_zw='元件驗證', | 222 label_zw='元件驗證', |
| 196 autotest_name='hardware_Components')]), | 223 autotest_name='hardware_Components')]), |
| 197 | 224 |
| 198 # THIS IS A GOOGLE REQUIRED TEST. | 225 # THIS IS A GOOGLE REQUIRED TEST. |
| 199 # PLEASE DO NOT REMOVE THIS TEST IN PRODUCTION RELEASES. | 226 # PLEASE DO NOT REMOVE THIS TEST IN PRODUCTION RELEASES. |
| 200 OperatorTest( | 227 OperatorTest( |
| 201 label_en='wipe', | 228 label_en='wipe', |
| 202 label_zw='清除', | 229 label_zw='清除', |
| (...skipping 14 matching lines...) Expand all Loading... |
| 217 'wipe test image!...\n' | 244 'wipe test image!...\n' |
| 218 '請按下 TAB+ENTER 啟用寫入保護以及清除' | 245 '請按下 TAB+ENTER 啟用寫入保護以及清除' |
| 219 '測試程式資料!...')}), | 246 '測試程式資料!...')}), |
| 220 | 247 |
| 221 InformationScreen( | 248 InformationScreen( |
| 222 label_en='review', | 249 label_en='review', |
| 223 label_zw='報告', | 250 label_zw='報告', |
| 224 autotest_name='factory_Review', | 251 autotest_name='factory_Review', |
| 225 kbd_shortcut='z'), | 252 kbd_shortcut='z'), |
| 226 ] | 253 ] |
| OLD | NEW |