Skip to content

Commit 7a24b87

Browse files
charleskeepaxbroonie
authored andcommitted
ASoC: ops-test: Add some basic kunit tests for soc-ops
Add some basic kunit tests for some of the ASoC control put and get helpers. This will assist in doing some refactoring. Note that presently some tests fail, but the rest of the series will fix these up. Signed-off-by: Charles Keepax <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 88f2009 commit 7a24b87

File tree

3 files changed

+552
-0
lines changed

3 files changed

+552
-0
lines changed

sound/soc/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ config SND_SOC_UTILS_KUNIT_TEST
8181
help
8282
If you want to perform tests on ALSA SoC utils library say Y here.
8383

84+
config SND_SOC_OPS_KUNIT_TEST
85+
tristate "KUnit tests for SoC ops"
86+
depends on KUNIT
87+
default KUNIT_ALL_TESTS
88+
help
89+
If you want to perform tests on ALSA SoC ops library say Y here.
90+
8491
config SND_SOC_ACPI
8592
tristate
8693

sound/soc/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ ifneq ($(CONFIG_SND_SOC_UTILS_KUNIT_TEST),)
2121
obj-$(CONFIG_SND_SOC_UTILS_KUNIT_TEST) += soc-utils-test.o
2222
endif
2323

24+
ifneq ($(CONFIG_SND_SOC_OPS_KUNIT_TEST),)
25+
obj-$(CONFIG_SND_SOC_OPS_KUNIT_TEST) += soc-ops-test.o
26+
endif
27+
2428
ifneq ($(CONFIG_SND_SOC_GENERIC_DMAENGINE_PCM),)
2529
snd-soc-core-y += soc-generic-dmaengine-pcm.o
2630
endif

0 commit comments

Comments
 (0)