ASoC: topology: KUnit: Add KUnit tests passing empty topology with variants to snd_so...
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Wed, 20 Jan 2021 15:28:45 +0000 (16:28 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 21 Jan 2021 12:36:25 +0000 (12:36 +0000)
commitcec9128dfcf9101f903470e43d46278e5b07ef24
tree8d53d3bdd804f2768cc8b07dd098cfabf8c413a2
parentd52bbf747cfa8a2988289009241214a84982cc7d
ASoC: topology: KUnit: Add KUnit tests passing empty topology with variants to snd_soc_tplg_component_load

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

Add "empty" topology template and tests for parsing it. Also adds few
variants with bad magic numbers.

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-5-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology-test.c