1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
7 The ``devlink-selftests`` API allows executing selftests on the device.
11 The ``devlink-selftests`` command should be run with a mask indicating
12 the tests to be executed.
16 The following is a list of tests that drivers may execute.
18 .. list-table:: List of tests
23 * - ``DEVLINK_SELFTEST_FLASH``
24 - Devices may have the firmware on non-volatile memory on the board, e.g.
25 flash. This particular test helps to run a flash selftest on the device.
26 Implementation of the test is left to the driver/firmware.
33 # Query selftests supported on the devlink device
34 $ devlink dev selftests show DEV
35 # Query selftests supported on all devlink devices
36 $ devlink dev selftests show
37 # Executes selftests on the device
38 $ devlink dev selftests run DEV id flash