]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/hid: update vmtest.sh for virtme-ng
authorBenjamin Tissoires <bentiss@kernel.org>
Thu, 21 Aug 2025 14:29:55 +0000 (16:29 +0200)
committerJiri Kosina <jkosina@suse.com>
Wed, 17 Sep 2025 09:35:39 +0000 (11:35 +0200)
commitbe66a27b4f391ecd9cfb9394feb4369c4d39f94f
tree9ce291c9f54431629f8f6d17fcdb7126973ca7fc
parent02d6eeedbc36d4b309d5518778071a749ef79c4e
selftests/hid: update vmtest.sh for virtme-ng

This commit is a rewrite almost from scratch of vmtest.sh.

By relying on virtme-ng, we get rid of boot2container, reducing the
total bootup time (and network requirements). That means that we are
relying on the programs being installed on the host, but that shouldn't
be an issue. The generation of the kconfig is also now handled by
virtme-ng, so that's one less thing to worry.

I used tools/testing/selftests/vsock/vmtest.sh as a base and modified it
to look mostly like my previous script:
- removed the custom ssh handling
- make use of vng for compiling, which allows to bring remote
  compilation (and potentially remote compilation on a remote container)
- change the verbosity logic by having 2 levels:
  - first one shows the tests outputs
  - second level also shows the VM logs
- instead of only running the compiled kernel when it is built, if we
  are in the kernel tree, use the kernel artifacts there (and complain
  if they are not built)
- adapted the tests list to match the HID subsystem tests

Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
tools/testing/selftests/hid/vmtest.sh