En-Shuo Hsu | 06c071b | 2019-11-12 21:04:03 +0800 | [diff] [blame] | 1 | # Copyright (c) 2019 The Chromium OS Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | AUTHOR = "The Chromium OS Authors,chromeos-audio-sw@google.com" |
| 6 | NAME = "audio_basic" |
| 7 | PURPOSE = "Suite for testing basic audio functionalities across devices." |
| 8 | |
| 9 | TIME = "MEDIUM" |
| 10 | TEST_CATEGORY = "General" |
| 11 | TEST_CLASS = "suite" |
| 12 | TEST_TYPE = "Server" |
| 13 | |
| 14 | DOC = """ |
| 15 | Audio tests that cover basic audio functionalities of CRAS for different |
| 16 | devices. |
| 17 | |
| 18 | The tests require chameleon and audio boards connected. For stability, all |
| 19 | cables should be plugged constantly without the jack plugger involved. |
| 20 | |
| 21 | USB audio shouldn't be configured with other audio devices like 3.5mm headset |
| 22 | as there is a known issue that USB chameleon connection might cause |
| 23 | interference. |
| 24 | |
| 25 | """ |
| 26 | |
| 27 | import common |
| 28 | from autotest_lib.server.cros.dynamic_suite import dynamic_suite |
| 29 | |
| 30 | # Values specified in this bug template will override default values when |
| 31 | # filing bugs on tests that are a part of this suite. If left unspecified |
| 32 | # the bug filer will fallback to it's defaults. |
| 33 | _BUG_TEMPLATE = { |
| 34 | 'components': ['OS>Kernel>Audio'], |
| 35 | 'owner': 'cychiang@chromium.org', |
| 36 | 'status': None, |
| 37 | 'summary': None, |
| 38 | 'title': None, |
| 39 | 'cc': ['kalin@chromium.org', 'conradlo@chromium.org', |
| 40 | 'chromeos-audio-bugs@google.com'] |
| 41 | } |
| 42 | |
| 43 | args_dict['name'] = NAME |
| 44 | args_dict['job'] = job |
| 45 | args_dict['add_experimental'] = True |
| 46 | args_dict['max_runtime_mins'] = 120 |
| 47 | args_dict['bug_template'] = _BUG_TEMPLATE |
| 48 | |
| 49 | dynamic_suite.reimage_and_run(**args_dict) |