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