selftest: alsa: check if user has alsa installed
authorAbdul Rahim <abdul.rahim@myyahoo.com>
Sun, 22 Sep 2024 22:58:18 +0000 (04:28 +0530)
committerTakashi Iwai <tiwai@suse.de>
Mon, 30 Sep 2024 07:47:34 +0000 (09:47 +0200)
commit2a94a0898b14f2d5dee10bf36d00ab5e766af94b
tree68c707525252548686ac0e683497f54a394d3498
parentbf36793fa260cb68cc817f311f1f683788261796
selftest: alsa: check if user has alsa installed

Currently, if alsa development package is not installed on the user's
system then the make command would print a `pagefull` of errors. In
particular one error message is repeated 3 times. This error is returned
by `pkg-config` and since it is not being handeled appropriately,
repeated calls to `pkg-config` prints the same message again.

This patch adds check for alsa package installation. If alsa is not
installed, a short and consize error is returned. Also, it does not
affect the compilation of other tests.

Signed-off-by: Abdul Rahim <abdul.rahim@myyahoo.com>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://patch.msgid.link/20240922225824.18918-1-abdul.rahim@myyahoo.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
tools/testing/selftests/alsa/Makefile