blob: 79f7349b187f76f2d3d46260ac09976aa68b1622 [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 = """
Scott Zawalskic50ce042012-04-17 13:01:31 -040016This is the Build Verification Test suite. It should consist of SHORT tests
Scott Zawalski65903082012-05-16 17:10:16 -040017that validate critical functionality. Critical functionality includes but is
18not limited to tests that cover the ability to acquire connectivity, perform
19-crash reporting, get updates, and allow a user to log in. A test failure in
20this suite means that the build is dead in the water and will not be passed
21on to QA. Tests that check critical pathways but are long running need to be
22pared down and added to this suite on a case by case basis. The longer running
23version can continue to run in other suites such as the regression suite. If you
24are unsure if your test belongs in this suite email:
25chromeos-lab-infrastructure@google.com.
26
Scott Zawalskic50ce042012-04-17 13:01:31 -040027This suite sets num to 4 in the reimage_and_run call to make sure we run
28across 4 different machines. This overrides the CROS.sharding_factor option in
29the global_config.
Chris Masone2ef1d4e2011-12-20 11:06:53 -080030
Scott Zawalski65903082012-05-16 17:10:16 -040031
Chris Masone017b04b2012-01-30 08:48:22 -080032@param build: The name of the image to test.
Chris Masone8b7cd422012-02-22 13:16:11 -080033 Ex: x86-mario-release/R17-1412.33.0-a1-b29
Scott Zawalskic50ce042012-04-17 13:01:31 -040034@param board: The board to test on. Ex: x86-mario
Scott Zawalski65650172012-02-16 11:48:26 -050035@param pool: The pool of machines to utilize for scheduling. If pool=None
36 board is used.
Chris Masone62579122012-03-08 15:18:43 -080037@param check_hosts: require appropriate live hosts to exist in the lab.
Chris Masone2ef1d4e2011-12-20 11:06:53 -080038@param SKIP_IMAGE: (optional) If present and True, don't re-image devices.
Chris Masone6fed6462011-10-20 16:36:43 -070039"""
40
41import common
Chris Masone304d78d2012-08-15 20:20:49 -070042from autotest_lib.server.cros.dynamic_suite import dynamic_suite
Chris Masone6fed6462011-10-20 16:36:43 -070043
Chris Masone990fd262012-03-05 16:17:16 -080044dynamic_suite.reimage_and_run(
45 build=build, board=board, name='bvt', job=job, pool=pool,
Scott Zawalskic0cb0e42012-08-10 11:58:56 -040046 check_hosts=check_hosts, add_experimental=True, num=num,
Simran Basid68dc992012-11-20 14:37:15 -080047 file_bugs=file_bugs, skip_reimage=dynamic_suite.skip_reimage(globals()),
Dan Shi0d8fcfa2013-06-10 12:50:16 -070048 max_runtime_mins=20, devserver_url=devserver_url)