mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
The string conversion frunctions provided by the WMI driver core have no dependencies on the remaining WMI API, making them suitable for unit tests. Implement such a unit test using kunit. Those unit tests verify that converting between WMI strings and UTF8 strings works as expected. They also verify that edge cases are handled correctly. Signed-off-by: Armin Wolf <W_Armin@gmx.de> Link: https://patch.msgid.link/20260116204116.4030-5-W_Armin@gmx.de Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
12 lines
351 B
Makefile
12 lines
351 B
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
#
|
|
# Makefile for linux/drivers/platform/x86/wmi/tests
|
|
# ACPI WMI KUnit tests
|
|
#
|
|
|
|
wmi_marshalling_kunit-y := marshalling_kunit.o
|
|
obj-$(CONFIG_ACPI_WMI_MARSHALLING_KUNIT_TEST) += wmi_marshalling_kunit.o
|
|
|
|
wmi_string_kunit-y := string_kunit.o
|
|
obj-$(CONFIG_ACPI_WMI_STRING_KUNIT_TEST) += wmi_string_kunit.o
|