Richard Barnette | 462858e | 2017-05-24 17:32:04 -0700 | [diff] [blame] | 1 | # Copyright 2017 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 = "Chrome OS Team" |
| 6 | NAME = "bvt-arc" |
| 7 | PURPOSE = "Test basic functionality of ARC." |
| 8 | |
| 9 | TIME = "SHORT" |
| 10 | TEST_CATEGORY = "General" |
| 11 | TEST_CLASS = "suite" |
| 12 | TEST_TYPE = "Server" |
| 13 | |
| 14 | DOC = """ |
| 15 | This is the portion of the Build Verification Test suite required |
| 16 | for devices supporting ARC. Tests in this suite must pass in the |
| 17 | CQ, and in the Chrome and Android PFQs. Test failures prevent code |
| 18 | from being included in the tree or in canary builds: |
| 19 | * Failures in the canary turn the tree red, block lower priority |
| 20 | tests for the build, and generally mean that QA cannot further |
| 21 | evaluate the build's fitness for release. |
| 22 | * Chrome OS CLs must pass these tests in the Commit Queue prior to |
| 23 | being accepted into the tree. |
| 24 | * A new Chrome or Android build must pass these tests prior to the |
| 25 | build being included in a Chrome OS canary build. |
| 26 | |
| 27 | Requirements for a test to be in this suite: |
| 28 | 1. The test should be SHORT or MEDIUM, and should not require any |
| 29 | specialized lab resources. |
| 30 | 2. A test failure should indicate one or more of the following |
| 31 | impacts is possible: |
| 32 | * The failure may prevent discovery of other ARC bugs. |
| 33 | * The failure may block ordinary development tasks for ARC. |
| 34 | 3. A test failure must reliably indicate a bug in the product, and |
| 35 | not a bug in the test. |
Richard Barnette | e19dd84 | 2018-03-19 12:14:28 -0700 | [diff] [blame] | 36 | 4. The test must be hermetic. That is, the test should have no |
| 37 | dependencies on external network resources. |
Richard Barnette | 462858e | 2017-05-24 17:32:04 -0700 | [diff] [blame] | 38 | |
| 39 | @param build: The name of the image to test. |
| 40 | Ex: veyron_minnie-release/R60-9575.0.0 |
| 41 | @param board: The board to test on. Ex: veyron_minnie |
| 42 | @param pool: The pool of machines to utilize for scheduling. |
| 43 | """ |
| 44 | |
| 45 | import common |
Richard Barnette | 462858e | 2017-05-24 17:32:04 -0700 | [diff] [blame] | 46 | from autotest_lib.server.cros.dynamic_suite import dynamic_suite |
| 47 | |
| 48 | |
| 49 | # Values specified in this bug template will override default values when |
| 50 | # filing bugs on tests that are a part of this suite. If left unspecified |
| 51 | # the bug filer will fallback to its defaults. |
| 52 | _BUG_TEMPLATE = { |
| 53 | 'labels': ['bvt'], |
| 54 | 'owner': '', |
| 55 | 'status': None, |
| 56 | 'summary': None, |
| 57 | 'title': None, |
| 58 | } |
| 59 | |
| 60 | args_dict['max_runtime_mins'] = 60 |
| 61 | args_dict['name'] = 'bvt-arc' |
| 62 | args_dict['job'] = job |
Richard Barnette | 462858e | 2017-05-24 17:32:04 -0700 | [diff] [blame] | 63 | args_dict['bug_template'] = _BUG_TEMPLATE |
| 64 | |
| 65 | dynamic_suite.reimage_and_run(**args_dict) |