selftests: alsa - move shared library configuration code to conf.c
authorJaroslav Kysela <perex@perex.cz>
Tue, 29 Nov 2022 08:53:06 +0000 (09:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 29 Nov 2022 14:05:18 +0000 (15:05 +0100)
commitb310092e3eec6e7be36ed2436577f406a1e5e8de
tree15641a64a58836b464be97677dadb32284129c3d
parent67df411db3f0209e4bb5227d4dd9d41b21368b9d
selftests: alsa - move shared library configuration code to conf.c

The minimal alsa-lib configuration code is similar in both mixer
and pcm tests. Move this code to the shared conf.c source file.

Also, fix the build rules inspired by rseq tests. Build libatest.so
which is linked to the both test utilities dynamically.

Also, set the TEST_FILES variable for lib.mk.

Cc: linux-kselftest@vger.kernel.org
Cc: Shuah Khan <shuah@kernel.org>
Reported-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Tested-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221129085306.2345763-1-perex@perex.cz
Signed-off-by: Takashi Iwai <tiwai@suse.de>
tools/testing/selftests/alsa/Makefile
tools/testing/selftests/alsa/alsa-local.h
tools/testing/selftests/alsa/conf.c
tools/testing/selftests/alsa/mixer-test.c
tools/testing/selftests/alsa/pcm-test.c