| # Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| AUTHOR = "Chrome OS Team" |
| NAME = "bvt" |
| PURPOSE = "Test basic, required functionality." |
| CRITERIA = "All tests with SUITE=bvt must pass." |
| |
| TIME = "SHORT" |
| TEST_CATEGORY = "General" |
| TEST_CLASS = "suite" |
| TEST_TYPE = "Server" |
| |
| DOC = """ |
| This is the Build Verification Test suite. It should consist of SHORT tests |
| that validate critical functionality -- ability to acquire connectivity, perform |
| crash reporting, get updates, and allow a user to log in, among other things. |
| |
| @param build: The name of the image to test. |
| Ex: x86-mario-r17/R17-1412.33.0-a1-b29 |
| @param board: The board to test on. Ex: netbook_MARIO_MP |
| @param SKIP_IMAGE: (optional) If present and True, don't re-image devices. |
| """ |
| |
| import common |
| from autotest_lib.server.cros import dynamic_suite |
| |
| suite_tag = 'bvt' |
| reimager = dynamic_suite.Reimager(job.autodir) |
| |
| if (reimager.skip(globals()) or |
| reimager.attempt(build, board, job.record)): |
| bvt = dynamic_suite.Suite.create_from_name(suite_tag, job.autodir) |
| bvt.run_and_wait(build, job.record, add_experimental=True) |