• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5AUTHOR = "Chrome OS Team"
6NAME = "bvt-perbuild"
7PURPOSE = "Test basic, required functionality."
8
9TIME = "SHORT"
10TEST_CATEGORY = "General"
11TEST_CLASS = "suite"
12TEST_TYPE = "Server"
13
14DOC = """
15This is the portion of the Build Verification Test suite required to
16pass on every canary build.  These tests are run against canary
17builds only; failures in this suite are evaluated by QA, and
18normally will block release.
19
20Requirements for a test to be in this suite:
21 1. The test should be SHORT or MEDIUM, and should not require any
22    specialized lab resources.
23 2. A test failure should indicate that the product is not fit for
24    release on any channel.
25 3. A test failure should indicate a bug in the product, and not a
26    bug in the test.
27
28@param build: The name of the image to test.
29              Ex: x86-mario-release/R17-1412.33.0-a1-b29
30@param board: The board to test on. Ex: x86-mario
31@param pool: The pool of machines to utilize for scheduling. If pool=None
32             board is used.
33@param check_hosts: require appropriate live hosts to exist in the lab.
34@param SKIP_IMAGE: (optional) If present and True, don't re-image devices.
35"""
36
37import common
38from autotest_lib.server.cros import provision
39from autotest_lib.server.cros.dynamic_suite import dynamic_suite
40
41
42# Values specified in this bug template will override default values when
43# filing bugs on tests that are a part of this suite. If left unspecified
44# the bug filer will fallback to it's defaults.
45_BUG_TEMPLATE = {
46    'labels': ['bvt'],
47    'owner': '',
48    'status': None,
49    'summary': None,
50    'title': None,
51}
52
53args_dict['max_runtime_mins'] = 60
54args_dict['job'] = job
55args_dict['add_experimental'] = True
56args_dict['name'] = 'bvt-perbuild'
57args_dict['version_prefix'] = provision.CROS_VERSION_PREFIX
58args_dict['bug_template'] = _BUG_TEMPLATE
59
60dynamic_suite.reimage_and_run(**args_dict)
61