• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5NAME = 'graphics_GpuReset'
6AUTHOR = 'chromeos-gfx'
7PURPOSE = 'Reset the GPU and check recovery mechanism.'
8CRITERIA = """
9Detection of udev event notification of a GPU hang.
10"""
11ATTRIBUTES = "suite:bvt-perbuild, suite:graphics, suite:graphics_per-day, suite:graphics_system"
12TIME='MEDIUM'
13TEST_CATEGORY = 'Functional'
14TEST_CLASS = "gl"
15TEST_TYPE = 'client'
16# Reboot in the lab after the test ends.
17DEPENDENCIES='cleanup-reboot'
18BUG_TEMPLATE = {
19    'components': ['OS>Kernel>Graphics'],
20}
21
22DOC = """
23The purpose of this test is to exercise the GPU failure path. We craft an
24erroneous GPU command packet and send it to the GPU, and wait for a udev
25event notifying us of a GPU hang. If the event doesn't come back, the test
26fails.
27
28This test must run with ui stopped.
29"""
30
31job.run_test('graphics_GpuReset')
32