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
5AUTHOR = 'chromeos-gfx'
6NAME = "graphics_KernelMemory"
7PURPOSE = 'Verify that kernel exports graphics memory info through sysfs.'
8CRITERIA = """
9Test fails if any of the following happen:
10- Unable to read memory sysfs field.
11- Unable to read gem objects sysfs field.
12- Read invalid values (e.g. 0 memory).
13"""
14TIME = "FAST"
15TEST_CATEGORY = "Functional"
16TEST_CLASS = "graphics"
17TEST_TYPE = "client"
18
19ATTRIBUTES = "suite:bvt-perbuild, suite:graphics, suite:graphics_per-day, suite:graphics_system"
20BUG_TEMPLATE = {
21    'components': ['OS>Kernel>Graphics'],
22}
23
24DOC = """
25Verifies kernel gem objects and memory info values can be read from sysfs.
26We also report these values to the perf dashboard. To make them a bit more
27repeatable we wait for the login screen to load (hack).
28
29TODO(ihf): It would be better to report this after running a non-browser
30           test like graphics_GLBench.
31"""
32
33job.run_test("graphics_KernelMemory")
34