blob: d36e89ab4511844098c2a058af1637ed22e1484f [file] [log] [blame]
Peter Mayoc3793d32012-06-14 15:12:06 -04001# Copyright (c) 2012 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 = "PGO_record"
7PURPOSE = "Exercise Chrome, record profiling data."
8CRITERIA = "The browser should do a reasnoable amout, upload must succeed"
9
10TIME = "LONG"
11TEST_CATEGORY = "General"
12TEST_CLASS = "suite"
13TEST_TYPE = "Server"
14
15DOC = """
16Exercise Chrome, record profiling data.
17
18The image should have been built with pgo_generate turned on for chrome.
19We do this to make branch prediction etc. data driven in future optimizations
20of chrome builds, so realism and source control are important.
21
22Mostly we are just wrapping the labelled tests here.
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
Alex Miller2229c9c2013-08-27 15:20:39 -070033from autotest_lib.server.cros import provision
Chris Masone304d78d2012-08-15 20:20:49 -070034from autotest_lib.server.cros.dynamic_suite import dynamic_suite
Peter Mayoc3793d32012-06-14 15:12:06 -040035
beeps735b3c02013-04-28 23:53:44 -070036
37# Values specified in this bug template will override default values when
38# filing bugs on tests that are a part of this suite. If left unspecified
39# the bug filer will fallback to it's defaults.
40_BUG_TEMPLATE = {
41 'labels': ['Hardware-Lab'],
42 'owner': '',
43 'status': None,
44 'summary': None,
45 'title': None,
beeps84e7bb42013-05-31 12:00:06 -070046 'cc': ['davidjames@chromium.org', 'asharif@chromium.org',
47 'bjanakiraman@chromium.org', 'scottz@chromium.org',
48 'beeps@chromium.org', 'dennisjeffrey@chromium.org']
beeps735b3c02013-04-28 23:53:44 -070049}
50
Peter Mayoc3793d32012-06-14 15:12:06 -040051dynamic_suite.reimage_and_run(
52 build=build, board=board, name='PGO_record', job=job, pool=pool,
Scott Zawalskic0cb0e42012-08-10 11:58:56 -040053 check_hosts=check_hosts, add_experimental=True, num=num,
Alex Miller3d58eeb2013-09-04 16:27:20 -070054 file_bugs=True, bug_template=_BUG_TEMPLATE, priority=priority,
Simran Basi07511372013-11-26 11:22:52 -080055 devserver_url=devserver_url, timeout_mins=timeout_mins,
Dan Shied823eb2013-11-19 13:11:49 -080056 version_prefix=provision.CROS_VERSION_PREFIX,
Fang Deng70a9ead2014-05-16 16:57:39 -070057 wait_for_results=wait_for_results, job_retry=job_retry)