blob: abe47e6d54042bd69d29d4b7ffc84771296ad5fb [file] [log] [blame]
# Copyright (c) 2011 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 image_name: 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(image_name, 4, board, job.record)):
bvt = dynamic_suite.Suite.create_from_name(suite_tag, job.autodir)
bvt.run_and_wait(image_name, job.record, add_experimental=True)