Chris Masone | 5552dd7 | 2012-02-15 15:01:04 -0800 | [diff] [blame] | 1 | # Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
Chris Masone | 6fed646 | 2011-10-20 16:36:43 -0700 | [diff] [blame] | 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" |
| 7 | PURPOSE = "Test basic, required functionality." |
| 8 | CRITERIA = "All tests with SUITE=bvt must pass." |
| 9 | |
| 10 | TIME = "SHORT" |
| 11 | TEST_CATEGORY = "General" |
| 12 | TEST_CLASS = "suite" |
| 13 | TEST_TYPE = "Server" |
| 14 | |
| 15 | DOC = """ |
Scott Zawalski | c50ce04 | 2012-04-17 13:01:31 -0400 | [diff] [blame] | 16 | This is the Build Verification Test suite. It should consist of SHORT tests |
Scott Zawalski | 6590308 | 2012-05-16 17:10:16 -0400 | [diff] [blame] | 17 | that validate critical functionality. Critical functionality includes but is |
| 18 | not 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 |
| 20 | this suite means that the build is dead in the water and will not be passed |
| 21 | on to QA. Tests that check critical pathways but are long running need to be |
| 22 | pared down and added to this suite on a case by case basis. The longer running |
| 23 | version can continue to run in other suites such as the regression suite. If you |
| 24 | are unsure if your test belongs in this suite email: |
| 25 | chromeos-lab-infrastructure@google.com. |
| 26 | |
Scott Zawalski | c50ce04 | 2012-04-17 13:01:31 -0400 | [diff] [blame] | 27 | This suite sets num to 4 in the reimage_and_run call to make sure we run |
| 28 | across 4 different machines. This overrides the CROS.sharding_factor option in |
| 29 | the global_config. |
Chris Masone | 2ef1d4e | 2011-12-20 11:06:53 -0800 | [diff] [blame] | 30 | |
Scott Zawalski | 6590308 | 2012-05-16 17:10:16 -0400 | [diff] [blame] | 31 | |
Chris Masone | 017b04b | 2012-01-30 08:48:22 -0800 | [diff] [blame] | 32 | @param build: The name of the image to test. |
Chris Masone | 8b7cd42 | 2012-02-22 13:16:11 -0800 | [diff] [blame] | 33 | Ex: x86-mario-release/R17-1412.33.0-a1-b29 |
Scott Zawalski | c50ce04 | 2012-04-17 13:01:31 -0400 | [diff] [blame] | 34 | @param board: The board to test on. Ex: x86-mario |
Scott Zawalski | 6565017 | 2012-02-16 11:48:26 -0500 | [diff] [blame] | 35 | @param pool: The pool of machines to utilize for scheduling. If pool=None |
| 36 | board is used. |
Chris Masone | 6257912 | 2012-03-08 15:18:43 -0800 | [diff] [blame] | 37 | @param check_hosts: require appropriate live hosts to exist in the lab. |
Chris Masone | 2ef1d4e | 2011-12-20 11:06:53 -0800 | [diff] [blame] | 38 | @param SKIP_IMAGE: (optional) If present and True, don't re-image devices. |
Chris Masone | 6fed646 | 2011-10-20 16:36:43 -0700 | [diff] [blame] | 39 | """ |
| 40 | |
| 41 | import common |
Chris Masone | 304d78d | 2012-08-15 20:20:49 -0700 | [diff] [blame] | 42 | from autotest_lib.server.cros.dynamic_suite import dynamic_suite |
Chris Masone | 6fed646 | 2011-10-20 16:36:43 -0700 | [diff] [blame] | 43 | |
Chris Masone | 990fd26 | 2012-03-05 16:17:16 -0800 | [diff] [blame] | 44 | dynamic_suite.reimage_and_run( |
| 45 | build=build, board=board, name='bvt', job=job, pool=pool, |
Scott Zawalski | c0cb0e4 | 2012-08-10 11:58:56 -0400 | [diff] [blame] | 46 | check_hosts=check_hosts, add_experimental=True, num=num, |
Simran Basi | d68dc99 | 2012-11-20 14:37:15 -0800 | [diff] [blame] | 47 | file_bugs=file_bugs, skip_reimage=dynamic_suite.skip_reimage(globals()), |
Dan Shi | 0d8fcfa | 2013-06-10 12:50:16 -0700 | [diff] [blame^] | 48 | max_runtime_mins=20, devserver_url=devserver_url) |