• 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_daily_regression"
15TEST_CATEGORY = "Functional"
16TEST_CLASS = "kernel"
17TEST_TYPE = "client"
18
19DOC = """
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
33job.run_test('kernel_FirmwareRequest')
34