Home | History | Annotate | Download | only in test_suites
      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-cq"
      7 PURPOSE = "Test functionality required by the Commit Queue."
      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 to
     16 pass the Chrome OS Commit Queue and Pre-Flight Queue.  Test failures
     17 prevent code from being included in the tree or in canary builds:
     18   * Chrome OS CLs must pass these tests prior to being accepted into
     19     the tree.
     20   * A new Chrome build must pass these tests prior to the build
     21     being included in a Chrome OS canary build.
     22 
     23 Requirements for a test to be in this suite:
     24  1. The test should be SHORT, and should not require any specialized
     25     lab resources.
     26  2. A test failure should indicate that the product is not fit for
     27     release on any channel.
     28  3. A test failure must reliably indicate a bug in the product, and
     29     not a bug in the test.
     30 
     31 @param build: The name of the image to test.
     32               Ex: x86-mario-release/R17-1412.33.0-a1-b29
     33 @param board: The board to test on. Ex: x86-mario
     34 @param pool: The pool of machines to utilize for scheduling. If pool=None
     35              board is used.
     36 @param check_hosts: require appropriate live hosts to exist in the lab.
     37 @param SKIP_IMAGE: (optional) If present and True, don't re-image devices.
     38 """
     39 
     40 import common
     41 from autotest_lib.server.cros import provision
     42 from autotest_lib.server.cros.dynamic_suite import dynamic_suite
     43 
     44 
     45 # Values specified in this bug template will override default values when
     46 # filing bugs on tests that are a part of this suite. If left unspecified
     47 # the bug filer will fallback to it's defaults.
     48 _BUG_TEMPLATE = {
     49     'labels': ['bvt'],
     50     'owner': '',
     51     'status': None,
     52     'summary': None,
     53     'title': None,
     54     'cc': ['chromeos-lab-errors (a] google.com']
     55 }
     56 
     57 args_dict['max_runtime_mins'] = 60
     58 args_dict['name'] = 'bvt-cq'
     59 args_dict['job'] = job
     60 args_dict['add_experimental'] = True
     61 args_dict['version_prefix'] = provision.CROS_VERSION_PREFIX
     62 args_dict['bug_template'] = _BUG_TEMPLATE
     63 
     64 dynamic_suite.reimage_and_run(**args_dict)
     65