• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5NAME = "kernel_FirmwareRequest"
6AUTHOR = "The Chromium OS Authors"
7PURPOSE = "Verify kernel correctly implements firmware request APIs"
8CRITERIA = """
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"""
13TIME = "SHORT"
14ATTRIBUTES = "suite:kernel_per-build_regression"
15SUITE = "kernel_per-build_regression"
16TEST_CATEGORY = "Functional"
17TEST_CLASS = "kernel"
18TEST_TYPE = "client"
19
20DOC = """
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
34job.run_test('kernel_FirmwareRequest')
35