J. Richard Barnette | f417347 | 2014-07-23 14:01:56 -0700 | [diff] [blame] | 1 | # Copyright (c) 2014 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-perbuild" |
| 7 | PURPOSE = "Test basic, required functionality." |
| 8 | CRITERIA = "All tests with SUITE=bvt-perbuild must pass." |
| 9 | |
| 10 | TIME = "SHORT" |
| 11 | TEST_CATEGORY = "General" |
| 12 | TEST_CLASS = "suite" |
| 13 | TEST_TYPE = "Server" |
| 14 | |
| 15 | DOC = """ |
| 16 | This is the portion of the Build Verification Test suite required to |
| 17 | pass on every canary build. These tests are run against canary |
| 18 | builds only; failures in this suite are evaluated by QA, and |
| 19 | normally will block release. |
| 20 | |
| 21 | Requirements for a test to be in this suite: |
| 22 | 1. The test should be SHORT or MEDIUM, and should not require any |
| 23 | specialized lab resources. |
| 24 | 2. A test failure should indicate that the product is not fit for |
| 25 | release on any channel. |
| 26 | 3. A test failure should indicate a bug in the product, and not a |
| 27 | bug in the test. |
| 28 | |
| 29 | @param build: The name of the image to test. |
| 30 | Ex: x86-mario-release/R17-1412.33.0-a1-b29 |
| 31 | @param board: The board to test on. Ex: x86-mario |
| 32 | @param pool: The pool of machines to utilize for scheduling. If pool=None |
| 33 | board is used. |
| 34 | @param check_hosts: require appropriate live hosts to exist in the lab. |
| 35 | @param SKIP_IMAGE: (optional) If present and True, don't re-image devices. |
| 36 | """ |
| 37 | |
| 38 | import common |
| 39 | from autotest_lib.server.cros import provision |
| 40 | from autotest_lib.server.cros.dynamic_suite import dynamic_suite |
| 41 | |
| 42 | |
| 43 | # Values specified in this bug template will override default values when |
| 44 | # filing bugs on tests that are a part of this suite. If left unspecified |
| 45 | # the bug filer will fallback to it's defaults. |
| 46 | _BUG_TEMPLATE = { |
| 47 | 'labels': ['bvt'], |
| 48 | 'owner': '', |
| 49 | 'status': None, |
| 50 | 'summary': None, |
| 51 | 'title': None, |
| 52 | 'ccs': ['chromeos-lab-errors@google.com'] |
| 53 | } |
| 54 | |
| 55 | dynamic_suite.reimage_and_run( |
| 56 | build=build, board=board, name='bvt-perbuild', job=job, pool=pool, |
| 57 | check_hosts=check_hosts, add_experimental=True, num=num, |
| 58 | file_bugs=file_bugs, priority=priority, timeout_mins=timeout_mins, |
| 59 | max_runtime_mins=20, bug_template=_BUG_TEMPLATE, |
| 60 | devserver_url=devserver_url, version_prefix=provision.CROS_VERSION_PREFIX, |
Fang Deng | 7c48ecb | 2015-01-06 11:08:32 -0800 | [diff] [blame] | 61 | wait_for_results=wait_for_results, job_retry=job_retry, |
Simran Basi | 0669a34 | 2015-04-21 13:21:10 -0700 | [diff] [blame] | 62 | max_retries=max_retries) |