From: HyeongJun An <sammiee5311@gmail.com>
To: broonie@kernel.org, tiwai@suse.com
Cc: perex@perex.cz, shuah@kernel.org, ivan.orlov0322@gmail.com,
ben.copeland@linaro.org, linux-sound@vger.kernel.org,
linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org,
HyeongJun An <sammiee5311@gmail.com>
Subject: [PATCH v2 0/2] selftests/alsa: Let the pcmtest test run on kselftest kernels
Date: Sat, 28 Nov 2026 15:52:25 +0900 [thread overview]
Message-ID: <20261128065228.3628550-1-sammiee5311@gmail.com> (raw)
In-Reply-To: <20261126035526.1779288-1-sammiee5311@gmail.com>
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. Patch 2 lets test-pcmtest-driver load
the module itself and unload it again at exit.
Tested in QEMU on sound/for-next 486060b97284, on x86_64 from
x86_64_defconfig and on arm64 from defconfig, each followed by make
kselftest-merge. On both, test-pcmtest-driver passes all 10 cases. The
module is gone after the run when it was not loaded before, and stays
loaded when it was. With a base config that turns off CONFIG_SND_DRIVERS,
the v1 config file lost CONFIG_SND_PCMTEST and CONFIG_SND_ALOOP in the
merge, and this one keeps them.
Changes in v2:
- Patch 1: Enable CONFIG_SND_DRIVERS, which pcmtest and aloop are under
(Mark). Name the options that are off on KernelCI. snd-aloop is on
there, so v1 was wrong to say all four were off.
- Patch 2: Unload the module at exit if the test loaded it (Mark).
v1: https://lore.kernel.org/all/20261126035526.1779288-1-sammiee5311@gmail.com/
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 | 7 +++++++
.../selftests/alsa/test-pcmtest-driver.c | 20 +++++++++++++++++++
2 files changed, 27 insertions(+)
create mode 100644 tools/testing/selftests/alsa/config
--
2.43.0
next prev parent reply other threads:[~2026-11-28 6:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 3:55 [PATCH " HyeongJun An
2026-11-26 3:55 ` [PATCH 1/2] selftests/alsa: Add a config file for the test-only options HyeongJun An
2026-11-26 16:08 ` Mark Brown
2026-11-26 3:55 ` [PATCH 2/2] selftests: ALSA: pcmtest: Load the module when it is missing HyeongJun An
2026-11-26 16:11 ` Mark Brown
2026-11-28 6:52 ` HyeongJun An [this message]
2026-11-28 6:52 ` [PATCH v2 1/2] selftests/alsa: Add a config file for the test-only options HyeongJun An
2026-11-28 6:52 ` [PATCH v2 2/2] selftests: ALSA: pcmtest: Load the module when it is missing HyeongJun An
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261128065228.3628550-1-sammiee5311@gmail.com \
--to=sammiee5311@gmail.com \
--cc=ben.copeland@linaro.org \
--cc=broonie@kernel.org \
--cc=ivan.orlov0322@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=shuah@kernel.org \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®