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