Chris Sosa | 03c7e5e | 2013-01-25 14:40:09 -0800 | [diff] [blame] | 1 | # Copyright (c) 2013 The Chromium OS Authors. All rights reserved. |
| 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 = "au" |
| 7 | PURPOSE = "Automated testing of autoupdate done by continuous builders." |
| 8 | CRITERIA = "All tests with SUITE=au must pass." |
| 9 | |
| 10 | TIME = "MEDIUM" |
| 11 | TEST_CATEGORY = "General" |
| 12 | TEST_CLASS = "suite" |
| 13 | TEST_TYPE = "Server" |
| 14 | |
| 15 | DOC = """ |
| 16 | This is the equivalent of the build verification suite but for autoupdate in the |
| 17 | sense that this suite contains the Autoupdate Verification tests that must pass |
| 18 | with every build. |
| 19 | |
| 20 | Note: the control files used by this suite are auto-generated by Chromium OS |
| 21 | builds which use the template control file from |
| 22 | server/site_tests/autoupdate_EndToEndTest/control. |
| 23 | |
| 24 | @param build: The name of the image to test. |
| 25 | Ex: x86-mario-release/R17-1412.33.0-a1-b29 |
| 26 | @param board: The board to test on. Ex: x86-mario |
| 27 | @param pool: The pool of machines to utilize for scheduling. If pool=None |
| 28 | board is used. |
| 29 | @param check_hosts: require appropriate live hosts to exist in the lab. |
| 30 | """ |
| 31 | |
| 32 | import common |
Chris Sosa | cee91e0 | 2013-02-20 21:09:23 -0800 | [diff] [blame] | 33 | from autotest_lib.client.common_lib.cros import dev_server |
Alex Miller | 2229c9c | 2013-08-27 15:20:39 -0700 | [diff] [blame] | 34 | from autotest_lib.server.cros import provision |
Chris Sosa | 03c7e5e | 2013-01-25 14:40:09 -0800 | [diff] [blame] | 35 | from autotest_lib.server.cros.dynamic_suite import dynamic_suite |
| 36 | |
Chris Sosa | cee91e0 | 2013-02-20 21:09:23 -0800 | [diff] [blame] | 37 | # Needs to be done to generate the control files for the suite. |
Alex Miller | 11ef686 | 2013-11-08 14:29:32 -0800 | [diff] [blame] | 38 | ds = dev_server.ImageServer(devserver_url) |
Chris Sosa | cee91e0 | 2013-02-20 21:09:23 -0800 | [diff] [blame] | 39 | ds.stage_artifacts(build, artifacts=['au_suite']) |
| 40 | |
beeps | 2c3a118 | 2013-09-12 09:02:30 -0700 | [diff] [blame] | 41 | # Values specified in this bug template will override default values when |
| 42 | # filing bugs on tests that are a part of this suite. If left unspecified |
| 43 | # the bug filer will fallback to it's defaults. |
| 44 | _BUG_TEMPLATE = { |
| 45 | 'labels': ['Cr-Internals-Installer'], |
| 46 | 'owner': '', |
| 47 | 'status': None, |
| 48 | 'summary': None, |
| 49 | 'title': None, |
Alex Deymo | 20ed8e2 | 2014-08-08 18:54:05 -0700 | [diff] [blame] | 50 | 'cc': ['chromeos-installer-alerts@google.com'] |
beeps | 2c3a118 | 2013-09-12 09:02:30 -0700 | [diff] [blame] | 51 | } |
| 52 | |
Chris Sosa | 366abba | 2013-03-18 00:41:17 -0700 | [diff] [blame] | 53 | # TODO(sosa): Really should skip_reimage but suite logic does not currently |
| 54 | # work without reimaging. |
Chris Sosa | 03c7e5e | 2013-01-25 14:40:09 -0800 | [diff] [blame] | 55 | dynamic_suite.reimage_and_run( |
| 56 | build=build, board=board, name='au', job=job, pool=pool, |
Chris Sosa | 53b4693 | 2013-03-27 20:52:46 -0700 | [diff] [blame] | 57 | check_hosts=check_hosts, add_experimental=True, num=num, |
Simran Basi | 0751137 | 2013-11-26 11:22:52 -0800 | [diff] [blame] | 58 | file_bugs=file_bugs, priority=priority, timeout_mins=timeout_mins, |
beeps | 2c3a118 | 2013-09-12 09:02:30 -0700 | [diff] [blame] | 59 | max_runtime_mins=60, bug_template=_BUG_TEMPLATE, |
| 60 | devserver_url=devserver_url, |
Dan Shi | ed823eb | 2013-11-19 13:11:49 -0800 | [diff] [blame] | 61 | version_prefix=provision.CROS_VERSION_PREFIX, |
Fang Deng | 70a9ead | 2014-05-16 16:57:39 -0700 | [diff] [blame] | 62 | wait_for_results=wait_for_results, job_retry=job_retry) |