Peter Mayo | c3793d3 | 2012-06-14 15:12:06 -0400 | [diff] [blame] | 1 | # 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 | |
| 5 | AUTHOR = "Chrome OS Team" |
| 6 | NAME = "PGO_record" |
| 7 | PURPOSE = "Exercise Chrome, record profiling data." |
| 8 | CRITERIA = "The browser should do a reasnoable amout, upload must succeed" |
| 9 | |
| 10 | TIME = "LONG" |
| 11 | TEST_CATEGORY = "General" |
| 12 | TEST_CLASS = "suite" |
| 13 | TEST_TYPE = "Server" |
| 14 | |
| 15 | DOC = """ |
| 16 | Exercise Chrome, record profiling data. |
| 17 | |
| 18 | The image should have been built with pgo_generate turned on for chrome. |
| 19 | We do this to make branch prediction etc. data driven in future optimizations |
| 20 | of chrome builds, so realism and source control are important. |
| 21 | |
| 22 | Mostly 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 | |
| 32 | import common |
Alex Miller | 2229c9c | 2013-08-27 15:20:39 -0700 | [diff] [blame] | 33 | from autotest_lib.server.cros import provision |
Chris Masone | 304d78d | 2012-08-15 20:20:49 -0700 | [diff] [blame] | 34 | from autotest_lib.server.cros.dynamic_suite import dynamic_suite |
Peter Mayo | c3793d3 | 2012-06-14 15:12:06 -0400 | [diff] [blame] | 35 | |
beeps | 735b3c0 | 2013-04-28 23:53:44 -0700 | [diff] [blame] | 36 | |
| 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, |
beeps | 84e7bb4 | 2013-05-31 12:00:06 -0700 | [diff] [blame] | 46 | 'cc': ['davidjames@chromium.org', 'asharif@chromium.org', |
| 47 | 'bjanakiraman@chromium.org', 'scottz@chromium.org', |
| 48 | 'beeps@chromium.org', 'dennisjeffrey@chromium.org'] |
beeps | 735b3c0 | 2013-04-28 23:53:44 -0700 | [diff] [blame] | 49 | } |
| 50 | |
Peter Mayo | c3793d3 | 2012-06-14 15:12:06 -0400 | [diff] [blame] | 51 | dynamic_suite.reimage_and_run( |
| 52 | build=build, board=board, name='PGO_record', job=job, pool=pool, |
Scott Zawalski | c0cb0e4 | 2012-08-10 11:58:56 -0400 | [diff] [blame] | 53 | check_hosts=check_hosts, add_experimental=True, num=num, |
Alex Miller | 3d58eeb | 2013-09-04 16:27:20 -0700 | [diff] [blame] | 54 | file_bugs=True, bug_template=_BUG_TEMPLATE, priority=priority, |
Simran Basi | 0751137 | 2013-11-26 11:22:52 -0800 | [diff] [blame] | 55 | devserver_url=devserver_url, timeout_mins=timeout_mins, |
Dan Shi | ed823eb | 2013-11-19 13:11:49 -0800 | [diff] [blame] | 56 | version_prefix=provision.CROS_VERSION_PREFIX, |
Fang Deng | 70a9ead | 2014-05-16 16:57:39 -0700 | [diff] [blame] | 57 | wait_for_results=wait_for_results, job_retry=job_retry) |