From 2d167aaba3864cf8f46b8364aa33e780de1da8f4 Mon Sep 17 00:00:00 2001 From: José Expósito Date: Sat, 11 Jun 2022 13:39:12 +0200 Subject: HID: uclogic: Add KUnit tests for uclogic_rdesc_template_apply() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Jiri Kosina --- drivers/hid/.kunitconfig | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 drivers/hid/.kunitconfig (limited to 'drivers/hid/.kunitconfig') diff --git a/drivers/hid/.kunitconfig b/drivers/hid/.kunitconfig new file mode 100644 index 000000000000..04daeff5c970 --- /dev/null +++ b/drivers/hid/.kunitconfig @@ -0,0 +1,5 @@ +CONFIG_KUNIT=y +CONFIG_USB=y +CONFIG_USB_HID=y +CONFIG_HID_UCLOGIC=y +CONFIG_HID_KUNIT_TEST=y -- cgit v1.2.3