]> git.baikalelectronics.ru Git - kernel.git/commit
HID: uclogic: Add KUnit tests for uclogic_rdesc_template_apply()
authorJosé Expósito <jose.exposito89@gmail.com>
Sat, 11 Jun 2022 11:39:12 +0000 (13:39 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 15 Jun 2022 13:51:46 +0000 (15:51 +0200)
commit45c1144c17d5a97e2bffb1e29232fc96e07e5cb0
tree939fdb3fb6003be1fab7a7e05d29b9ebf7a337ba
parent9df246d82370e36a27de49375b09c14ddc8eaab1
HID: uclogic: Add KUnit tests for uclogic_rdesc_template_apply()

The uclogic_rdesc_template_apply() function is used by the driver to
generate HID descriptors from templates.

In order to avoid regressions in future patches, add KUnit tests to
test the function.

To run the tests:

 $ ./tools/testing/kunit/kunit.py run --kunitconfig=drivers/hid \
  --kconfig_add CONFIG_VIRTIO_UML=y \
  --kconfig_add CONFIG_UML_PCI_OVER_VIRTIO=y

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/.kunitconfig [new file with mode: 0644]
drivers/hid/Kconfig
drivers/hid/Makefile
drivers/hid/hid-uclogic-rdesc-test.c [new file with mode: 0644]