Home | History | Annotate | Download | only in test_suites
      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.
     36 
     37 @param build: The name of the image to test.
     38               Ex: veyron_minnie-release/R60-9575.0.0
     39 @param board: The board to test on. Ex: veyron_minnie
     40 @param pool: The pool of machines to utilize for scheduling.
     41 """
     42 
     43 import common
     44 from autotest_lib.server.cros import provision
     45 from autotest_lib.server.cros.dynamic_suite import dynamic_suite
     46 
     47 
     48 # Values specified in this bug template will override default values when
     49 # filing bugs on tests that are a part of this suite. If left unspecified
     50 # the bug filer will fallback to its defaults.
     51 _BUG_TEMPLATE = {
     52     'labels': ['bvt'],
     53     'owner': '',
     54     'status': None,
     55     'summary': None,
     56     'title': None,
     57 }
     58 
     59 args_dict['max_runtime_mins'] = 60
     60 args_dict['name'] = 'bvt-arc'
     61 args_dict['job'] = job
     62 args_dict['version_prefix'] = provision.CROS_VERSION_PREFIX
     63 args_dict['bug_template'] = _BUG_TEMPLATE
     64 
     65 dynamic_suite.reimage_and_run(**args_dict)
     66