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" 12SUITE = 'bvt-perbuild, graphics_per-day, graphics, graphics_system' 13TIME='MEDIUM' 14TEST_CATEGORY = 'Functional' 15TEST_CLASS = "gl" 16TEST_TYPE = 'client' 17JOB_RETRIES = 2 18# Reboot in the lab after the test ends. 19DEPENDENCIES='cleanup-reboot' 20BUG_TEMPLATE = { 21 'labels': ['Cr-OS-Kernel-Graphics'], 22} 23 24DOC = """ 25The purpose of this test is to exercise the GPU failure path. We craft an 26erroneous GPU command packet and send it to the GPU, and wait for a udev 27event notifying us of a GPU hang. If the event doesn't come back, the test 28fails. 29 30This test must run with ui stopped. 31""" 32 33job.run_test('graphics_GpuReset') 34