[PATCH 0/2] selftests/alsa: Let the pcmtest test run on kselftest kernels
From: HyeongJun An
Date: Wed Nov 25 2026 - 22:55:39 EST
On the kernels that CI labs such as KernelCI build for kselftest, every
test-pcmtest-driver case skips. The KernelCI arm64 kselftest kernel has
CONFIG_SND_PCMTEST, CONFIG_SND_SEQ_UMP and CONFIG_SND_UTIMER off, and
nothing would load the pcmtest module even if it were built.
Patch 1 adds a config file for make kselftest-merge with only the
options the tests themselves need. When Ben sent a config file in March
[1], Mark pointed out that mixer-test and pcm-test check whatever
drivers a system has, while test-pcmtest-driver does need a config
option for its module. So no drivers are listed here. Patch 2 lets
test-pcmtest-driver load the module itself.
Tested in QEMU (x86_64) on sound/for-next 0dfd513a1557, with a kernel
from defconfig and make kselftest-merge and no sound modules loaded at
boot. All four options are on with patch 1 and off without it. On the
kernel with patch 1, test-pcmtest-driver goes from 10 skipped to 10
passed with patch 2, and seq-ump-test, which skips without
CONFIG_SND_SEQ_UMP, passes.
[1] https://lore.kernel.org/all/20260319084347.134744-1-ben.copeland@xxxxxxxxxx/
Prepared with Claude Code (Claude Opus 5.5).
HyeongJun An (2):
selftests/alsa: Add a config file for the test-only options
selftests: ALSA: pcmtest: Load the module when it is missing
tools/testing/selftests/alsa/config | 6 ++++++
tools/testing/selftests/alsa/test-pcmtest-driver.c | 4 ++++
2 files changed, 10 insertions(+)
create mode 100644 tools/testing/selftests/alsa/config
--
2.43.0