diff options
author | Javier Martinez Canillas <[email protected]> | 2023-04-01 22:45:09 -0700 |
---|---|---|
committer | Dmitry Torokhov <[email protected]> | 2023-04-01 22:47:04 -0700 |
commit | fdefcbdd6f3618410a0afb2ac0071c04036f9602 (patch) | |
tree | d23042539599333587fbbbeb46e60b2030a0036d /drivers/fpga/fpga-mgr.c | |
parent | 57d94d150d17754ae1b4e87e9a883155cbb3ab05 (diff) |
Input: Add KUnit tests for some of the input core helper functions
The input subsystem doesn't currently have any unit tests, let's add a
CONFIG_INPUT_KUNIT_TEST option that builds a test suite to be executed
with the KUnit test infrastructure.
For now, only three tests were added for some of the input core helper
functions that are trivial to test:
* input_test_polling: set/get poll interval and set-up a poll handler.
* input_test_timestamp: set/get input event timestamps.
* input_test_match_device_id: match a device by bus, vendor, product,
version and events capable of handling.
But having the minimal KUnit support allows to add more tests and suites
as follow-up changes. The tests can be run with the following command:
$ ./tools/testing/kunit/kunit.py run --kunitconfig=drivers/input/tests/
Signed-off-by: Javier Martinez Canillas <[email protected]>
Tested-by: Enric Balletbo i Serra <[email protected]>
config: powerpc-allnoconfig (https://download.01.org/0day-ci/archive/20230330/[email protected]/config)
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions