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 = """ |
| 16 | This is the Build Verification Test suite. It should consist of SHORT tests |
| 17 | that validate critical functionality -- ability to acquire connectivity, perform |
Chris Masone | 2ef1d4e | 2011-12-20 11:06:53 -0800 | [diff] [blame] | 18 | crash reporting, get updates, and allow a user to log in, among other things. |
| 19 | |
Chris Masone | 017b04b | 2012-01-30 08:48:22 -0800 | [diff] [blame] | 20 | @param build: The name of the image to test. |
| 21 | Ex: x86-mario-r17/R17-1412.33.0-a1-b29 |
Chris Masone | 2ef1d4e | 2011-12-20 11:06:53 -0800 | [diff] [blame] | 22 | @param board: The board to test on. Ex: netbook_MARIO_MP |
| 23 | @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] | 24 | """ |
| 25 | |
| 26 | import common |
| 27 | from autotest_lib.server.cros import dynamic_suite |
| 28 | |
Chris Masone | 6fed646 | 2011-10-20 16:36:43 -0700 | [diff] [blame] | 29 | suite_tag = 'bvt' |
| 30 | reimager = dynamic_suite.Reimager(job.autodir) |
| 31 | |
Chris Masone | 2ef1d4e | 2011-12-20 11:06:53 -0800 | [diff] [blame] | 32 | if (reimager.skip(globals()) or |
Chris Masone | 5552dd7 | 2012-02-15 15:01:04 -0800 | [diff] [blame^] | 33 | reimager.attempt(build, board, job.record)): |
Chris Masone | 6fed646 | 2011-10-20 16:36:43 -0700 | [diff] [blame] | 34 | bvt = dynamic_suite.Suite.create_from_name(suite_tag, job.autodir) |
Chris Masone | 017b04b | 2012-01-30 08:48:22 -0800 | [diff] [blame] | 35 | bvt.run_and_wait(build, job.record, add_experimental=True) |