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_daily_regression"
     15 TEST_CATEGORY = "Functional"
     16 TEST_CLASS = "kernel"
     17 TEST_TYPE = "client"
     18 
     19 DOC = """
     20     This test will run the firmware request kernel self test (from upstream).
     21     This tests that the request_firmware() and request_firmware_nowait() kernel
     22     APIs are somewhat sane. It tries to load the empty filename ("") as well as
     23     a small toy firmware, and checks that it matches. It also makes sure a
     24     non-existent firmware cannot be found.
     25 
     26     We rerun the same test several times to increase the probability of
     27     catching errors.
     28 
     29     Of course, a success doesn't mean the absence of race conditions or bugs.
     30     We may have just won the race.
     31 """
     32 
     33 job.run_test('kernel_FirmwareRequest')
     34