kselftest/alsa: Refactor pcm-test to list the tests to run in a struct
authorMark Brown <broonie@kernel.org>
Thu, 1 Dec 2022 17:07:40 +0000 (17:07 +0000)
committerTakashi Iwai <tiwai@suse.de>
Thu, 1 Dec 2022 19:02:10 +0000 (20:02 +0100)
commit22eeb8f531c117943a3ef9a75d4d40cdbcc66fb1
tree94c6d54279eab29da2702b76afbf6273bff8932e
parent4e9050e5f95d94bea67ccd00c2719108649bee36
kselftest/alsa: Refactor pcm-test to list the tests to run in a struct

In order to help make the list of tests a bit easier to maintain refactor
things so we pass the tests around as a struct with the parameters in,
enabling us to add new tests by adding to a table with comments saying
what each of the number are. We could also use named initializers if we get
more parameters.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221201170745.1111236-2-broonie@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
tools/testing/selftests/alsa/pcm-test.c