diff options
author | Mark Brown <broonie@kernel.org> | 2022-12-27 20:06:50 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-01-02 17:08:07 +0300 |
commit | 8acb452467f5a9671756937e55baa1776344e80e (patch) | |
tree | 63d8759c236b6d3f81bd60a6f0d749c20aae9db9 /tools/testing/selftests/alsa | |
parent | 34fb956cbdba8e726d72da9796a8a1b65337d9db (diff) | |
download | linux-8acb452467f5a9671756937e55baa1776344e80e.tar.xz |
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>
Diffstat (limited to 'tools/testing/selftests/alsa')
-rw-r--r-- | tools/testing/selftests/alsa/pcm-test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/selftests/alsa/pcm-test.c b/tools/testing/selftests/alsa/pcm-test.c index 5fbb3ff517aa..57d3f6dcb46b 100644 --- a/tools/testing/selftests/alsa/pcm-test.c +++ b/tools/testing/selftests/alsa/pcm-test.c @@ -244,6 +244,11 @@ static void test_pcm_time(struct pcm_data *data, enum test_class class, snd_pcm_sw_params_t *sw_params; const char *test_class_name; bool skip = true; + const char *desc; + + desc = conf_get_string(pcm_cfg, "description", NULL, NULL); + if (desc) + ksft_print_msg("%s\n", desc); switch (class) { case TEST_CLASS_DEFAULT: |