blob: 38ac01a513719b626513acd1367b3e2aeec4c1cd [file] [log] [blame]
Chris Masone5552dd72012-02-15 15:01:04 -08001# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
Chris Masone6fed6462011-10-20 16:36:43 -07002# 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"
7PURPOSE = "Test basic, required functionality."
8CRITERIA = "All tests with SUITE=bvt must pass."
9
10TIME = "SHORT"
11TEST_CATEGORY = "General"
12TEST_CLASS = "suite"
13TEST_TYPE = "Server"
14
15DOC = """
16This is the Build Verification Test suite. It should consist of SHORT tests
17that validate critical functionality -- ability to acquire connectivity, perform
Chris Masone2ef1d4e2011-12-20 11:06:53 -080018crash reporting, get updates, and allow a user to log in, among other things.
19
Chris Masone017b04b2012-01-30 08:48:22 -080020@param build: The name of the image to test.
21 Ex: x86-mario-r17/R17-1412.33.0-a1-b29
Chris Masone2ef1d4e2011-12-20 11:06:53 -080022@param board: The board to test on. Ex: netbook_MARIO_MP
Scott Zawalski65650172012-02-16 11:48:26 -050023@param pool: The pool of machines to utilize for scheduling. If pool=None
24 board is used.
Chris Masone2ef1d4e2011-12-20 11:06:53 -080025@param SKIP_IMAGE: (optional) If present and True, don't re-image devices.
Chris Masone6fed6462011-10-20 16:36:43 -070026"""
27
28import common
29from autotest_lib.server.cros import dynamic_suite
30
Chris Masone6fed6462011-10-20 16:36:43 -070031suite_tag = 'bvt'
Scott Zawalski65650172012-02-16 11:48:26 -050032reimager = dynamic_suite.Reimager(job.autodir, pool=pool)
Chris Masone6fed6462011-10-20 16:36:43 -070033
Chris Masone2ef1d4e2011-12-20 11:06:53 -080034if (reimager.skip(globals()) or
Chris Masone5552dd72012-02-15 15:01:04 -080035 reimager.attempt(build, board, job.record)):
Scott Zawalski65650172012-02-16 11:48:26 -050036 bvt = dynamic_suite.Suite.create_from_name(suite_tag, job.autodir,
37 pool=pool)
Chris Masone017b04b2012-01-30 08:48:22 -080038 bvt.run_and_wait(build, job.record, add_experimental=True)