Home | History | Annotate | Download | only in kernel_FirmwareRequest
      1 # Copyright (c) 2015 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 = "kernel_FirmwareRequest"
      6 AUTHOR = "The Chromium OS Authors"
      7 PURPOSE = "Verify kernel correctly implements firmware request APIs"
      8 CRITERIA = """
      9    Fails if a known-existing firmware file can't be loaded (e.g., due to
     10    crashes, race conditions on kfree()'ing the name, etc.), or if
     11    known-nonexistent firmware files can be loaded.
     12 """
     13 TIME = "SHORT"
     14 ATTRIBUTES = "suite:kernel_per-build_regression"
     15 SUITE = "kernel_per-build_regression"
     16 TEST_CATEGORY = "Functional"
     17 TEST_CLASS = "kernel"
     18 TEST_TYPE = "client"
     19 
     20 DOC = """
     21     This test will run the firmware request kernel self test (from upstream).
     22     This tests that the request_firmware() and request_firmware_nowait() kernel
     23     APIs are somewhat sane. It tries to load the empty filename ("") as well as
     24     a small toy firmware, and checks that it matches. It also makes sure a
     25     non-existent firmware cannot be found.
     26 
     27     We rerun the same test several times to increase the probability of
     28     catching errors.
     29 
     30     Of course, a success doesn't mean the absence of race conditions or bugs.
     31     We may have just won the race.
     32 """
     33 
     34 job.run_test('kernel_FirmwareRequest')
     35