Commit 8acb4524 authored by Mark Brown's avatar Mark Brown Committed by Takashi Iwai

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: default avatarJaroslav Kysela <perex@perex.cz>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221208-alsa-pcm-test-hacks-v4-5-5a152e65b1e1@kernel.orgSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 34fb956c
...@@ -244,6 +244,11 @@ static void test_pcm_time(struct pcm_data *data, enum test_class class, ...@@ -244,6 +244,11 @@ static void test_pcm_time(struct pcm_data *data, enum test_class class,
snd_pcm_sw_params_t *sw_params; snd_pcm_sw_params_t *sw_params;
const char *test_class_name; const char *test_class_name;
bool skip = true; 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) { switch (class) {
case TEST_CLASS_DEFAULT: case TEST_CLASS_DEFAULT:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment