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 |
Chris Masone | 304d78d | 2012-08-15 20:20:49 -0700 | [diff] [blame] | 33 | from autotest_lib.server.cros.dynamic_suite import dynamic_suite |
Peter Mayo | c3793d3 | 2012-06-14 15:12:06 -0400 | [diff] [blame] | 34 | |
beeps | 735b3c0 | 2013-04-28 23:53:44 -0700 | [diff] [blame] | 35 | |
| 36 | # Values specified in this bug template will override default values when |
| 37 | # filing bugs on tests that are a part of this suite. If left unspecified |
| 38 | # the bug filer will fallback to it's defaults. |
| 39 | _BUG_TEMPLATE = { |
| 40 | 'labels': ['Hardware-Lab'], |
| 41 | 'owner': '', |
| 42 | 'status': None, |
| 43 | 'summary': None, |
| 44 | 'title': None, |
beeps | 84e7bb4 | 2013-05-31 12:00:06 -0700 | [diff] [blame] | 45 | 'cc': ['davidjames@chromium.org', 'asharif@chromium.org', |
| 46 | 'bjanakiraman@chromium.org', 'scottz@chromium.org', |
| 47 | 'beeps@chromium.org', 'dennisjeffrey@chromium.org'] |
beeps | 735b3c0 | 2013-04-28 23:53:44 -0700 | [diff] [blame] | 48 | } |
| 49 | |
Peter Mayo | c3793d3 | 2012-06-14 15:12:06 -0400 | [diff] [blame] | 50 | dynamic_suite.reimage_and_run( |
| 51 | build=build, board=board, name='PGO_record', job=job, pool=pool, |
Scott Zawalski | c0cb0e4 | 2012-08-10 11:58:56 -0400 | [diff] [blame] | 52 | check_hosts=check_hosts, add_experimental=True, num=num, |
Dan Shi | 0d8fcfa | 2013-06-10 12:50:16 -0700 | [diff] [blame^] | 53 | file_bugs=True, skip_reimage=False, bug_template=_BUG_TEMPLATE, |
| 54 | devserver_url=devserver_url) |