]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: topology: KUnit: Add KUnit tests passing various arguments to snd_soc_tplg_comp...
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Wed, 20 Jan 2021 15:28:44 +0000 (16:28 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 21 Jan 2021 12:36:24 +0000 (12:36 +0000)
commitd52bbf747cfa8a2988289009241214a84982cc7d
treef48e378159fd6177c263271d22fdffe7b60ff83f
parent879a67e3577020012bfad1b45aae124ec23c5db0
ASoC: topology: KUnit: Add KUnit tests passing various arguments to snd_soc_tplg_component_load

In order to ensure correct behaviour of topology API, add unit tests
exercising topology functionality.

Start with adding cases for passing various arguments to
snd_soc_tplg_component_load as it is part of exposed topology API.

First test case adds test passing NULL component as argument.
Following one adds test case for passing NULL ops as argument.
Finally add test case passing NULL fw as argument.

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210120152846.1703655-4-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/Kconfig
sound/soc/Makefile
sound/soc/soc-topology-test.c [new file with mode: 0644]