Ilja Friedel | 21c4eb3 | 2013-03-27 11:56:29 -0700 | [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 = "ihf|sabercrombie|marcheu@chromium.org" |
| 6 | NAME = "graphics_per-build" |
| 7 | PURPOSE = "Test graphics functionality." |
Alex Miller | 3951620 | 2013-04-04 10:12:49 -0700 | [diff] [blame] | 8 | CRITERIA = "All tests with SUITE=graphics_per-build should complete." |
Ilja Friedel | 21c4eb3 | 2013-03-27 11:56:29 -0700 | [diff] [blame] | 9 | |
| 10 | TIME = "MEDIUM" |
| 11 | TEST_CATEGORY = "Graphics" |
| 12 | TEST_CLASS = "suite" |
| 13 | TEST_TYPE = "Server" |
| 14 | |
| 15 | DOC = """ |
| 16 | This is the graphics test suite. It should consist of functional and stressful |
| 17 | graphics tests. In general we don't want these tests to hang the system, |
| 18 | although this may happen especially with piglit. |
| 19 | |
| 20 | Tests should be run in order of increasing likeness of hanging the system |
| 21 | graphics_WebGLConformance 5 minutes |
| 22 | |
| 23 | The machine should reboot after finishing the suite or timing out. |
| 24 | |
| 25 | @param build: The name of the image to test. |
| 26 | Ex: x86-mario-release/R17-1412.33.0-a1-b29 |
| 27 | @param board: The board to test on. Ex: x86-mario |
| 28 | @param pool: The pool of machines to utilize for scheduling. If pool=None |
| 29 | board is used. |
| 30 | @param check_hosts: require appropriate live hosts to exist in the lab. |
| 31 | @param SKIP_IMAGE: (optional) If present and True, don't re-image devices. |
| 32 | """ |
| 33 | |
| 34 | import common |
Alex Miller | 2229c9c | 2013-08-27 15:20:39 -0700 | [diff] [blame] | 35 | from autotest_lib.server.cros import provision |
Ilja Friedel | 21c4eb3 | 2013-03-27 11:56:29 -0700 | [diff] [blame] | 36 | from autotest_lib.server.cros.dynamic_suite import dynamic_suite |
| 37 | |
| 38 | dynamic_suite.reimage_and_run( |
Alex Miller | 3951620 | 2013-04-04 10:12:49 -0700 | [diff] [blame] | 39 | build=build, board=board, name='graphics_per-build', job=job, pool=pool, |
Ilja Friedel | 21c4eb3 | 2013-03-27 11:56:29 -0700 | [diff] [blame] | 40 | check_hosts=check_hosts, add_experimental=True, num=num, |
Alex Miller | 1c2bf69 | 2013-09-07 15:48:25 -0700 | [diff] [blame] | 41 | file_bugs=file_bugs, priority=priority, timeout=timeout, |
Alex Miller | 2229c9c | 2013-08-27 15:20:39 -0700 | [diff] [blame] | 42 | max_runtime_mins=60, devserver_url=devserver_url, |
| 43 | version_prefix=provision.CROS_VERSION_PREFIX) |