blob: a8e8486124b4b5c19ff7b796481eb2f1229e9d43 [file] [log] [blame]
Chris Sosa03c7e5e2013-01-25 14:40:09 -08001# 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
5AUTHOR = "Chrome OS Team"
6NAME = "au"
7PURPOSE = "Automated testing of autoupdate done by continuous builders."
8CRITERIA = "All tests with SUITE=au must pass."
9
10TIME = "MEDIUM"
11TEST_CATEGORY = "General"
12TEST_CLASS = "suite"
13TEST_TYPE = "Server"
14
15DOC = """
16This is the equivalent of the build verification suite but for autoupdate in the
17sense that this suite contains the Autoupdate Verification tests that must pass
18with every build.
19
20Note: the control files used by this suite are auto-generated by Chromium OS
21builds which use the template control file from
22server/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
32import common
Chris Sosacee91e02013-02-20 21:09:23 -080033from autotest_lib.client.common_lib.cros import dev_server
Alex Miller2229c9c2013-08-27 15:20:39 -070034from autotest_lib.server.cros import provision
Chris Sosa03c7e5e2013-01-25 14:40:09 -080035from autotest_lib.server.cros.dynamic_suite import dynamic_suite
36
Chris Sosacee91e02013-02-20 21:09:23 -080037# Needs to be done to generate the control files for the suite.
Alex Miller11ef6862013-11-08 14:29:32 -080038ds = dev_server.ImageServer(devserver_url)
Chris Sosacee91e02013-02-20 21:09:23 -080039ds.stage_artifacts(build, artifacts=['au_suite'])
40
beeps2c3a1182013-09-12 09:02:30 -070041# 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 Deymo20ed8e22014-08-08 18:54:05 -070050 'cc': ['chromeos-installer-alerts@google.com']
beeps2c3a1182013-09-12 09:02:30 -070051}
52
Chris Sosa366abba2013-03-18 00:41:17 -070053# TODO(sosa): Really should skip_reimage but suite logic does not currently
54# work without reimaging.
Shuqian Zhao24785cc2015-06-01 16:32:18 -070055args_dict['max_runtime_mins'] = 60
56args_dict['name'] = 'au'
57args_dict['job'] = job
58args_dict['add_experimental'] = True
59args_dict['version_prefix'] = provision.CROS_VERSION_PREFIX
60args_dict['bug_template'] = _BUG_TEMPLATE
61
62dynamic_suite.reimage_and_run(**args_dict)