kselftest/alsa: pcm - Support optional description for tests
authorMark Brown <broonie@kernel.org>
Tue, 27 Dec 2022 17:06:50 +0000 (17:06 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 2 Jan 2023 14:08:07 +0000 (15:08 +0100)
commit8acb452467f5a9671756937e55baa1776344e80e
tree63d8759c236b6d3f81bd60a6f0d749c20aae9db9
parent34fb956cbdba8e726d72da9796a8a1b65337d9db
kselftest/alsa: pcm - Support optional description for tests

In order to help with the comprehensibility of tests it is useful for us to
document what the test is attempting to cover. We could just do this through
comments in the configuration files but in order to aid people looking at
the output of the program in logs let's provide support for an optional
'description' directive which we log prior to running each of the tests.

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221208-alsa-pcm-test-hacks-v4-5-5a152e65b1e1@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
tools/testing/selftests/alsa/pcm-test.c