On Thu, 21 Aug 2025, Benjamin Tissoires wrote:

> 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 <[email protected]>
> ---
> I have switched my workflow to make use of virtme-ng for a few months.
> Now it's time to automate the manual commands I've been running in
> vmtest.sh.
> ---
>  tools/testing/selftests/hid/vmtest.sh | 668 
> +++++++++++++++++++++-------------
>  1 file changed, 423 insertions(+), 245 deletions(-)

Applied to hid.git#for-6.18/selftests, thanks Benjamin.

-- 
Jiri Kosina
SUSE Labs


Reply via email to