Home | History | Annotate | Download | only in graphics_KernelMemory
      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 AUTHOR = 'chromeos-gfx'
      6 NAME = "graphics_KernelMemory"
      7 PURPOSE = 'Verify that kernel exports graphics memory info through sysfs.'
      8 CRITERIA = """
      9 Test 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 """
     14 TIME = "FAST"
     15 TEST_CATEGORY = "Functional"
     16 TEST_CLASS = "graphics"
     17 TEST_TYPE = "client"
     18 JOB_RETRIES = 2
     19 
     20 ATTRIBUTES = "suite:bvt-cq, suite:graphics, suite:graphics_per-day, suite:graphics_system"
     21 SUITE = 'bvt-cq, graphics_per-day, graphics, graphics_system'
     22 BUG_TEMPLATE = {
     23     'labels': ['Cr-OS-Kernel-Graphics'],
     24 }
     25 
     26 DOC = """
     27 Verifies kernel gem objects and memory info values can be read from sysfs.
     28 We also report these values to the perf dashboard. To make them a bit more
     29 repeatable we wait for the login screen to load (hack).
     30 
     31 TODO(ihf): It would be better to report this after running a non-browser
     32            test like graphics_GLBench.
     33 """
     34 
     35 job.run_test("graphics_KernelMemory")
     36