mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 22:03:17 +01:00
Add the end to end testing infrastructure required to verify the liveupdate feature. This includes a custom init process, a test orchestration script, and a batch runner. The framework consists of: init.c: A lightweight init process that manages the kexec lifecycle. It mounts necessary filesystems, determines the current execution stage (1 or 2) via the kernel command line, and handles the kexec_file_load() sequence to transition between kernels. vmtest.sh: The primary KTAP-compliant test driver. It handles: - Kernel configuration merging and building. - Cross-compilation detection for x86_64 and arm64. - Generation of the initrd containing the test binary and init. - QEMU execution with automatic accelerator detection (KVM, HVF, or TCG). run-vmtests.sh: A wrapper that runs vmtest.sh for each LUO test across supported architectures, providing a summary of pass/fail/skip results. Signed-off-by: Pasha Tatashin <[email protected]> Co-developed-by: Jordan Richards <[email protected]> Signed-off-by: Jordan Richards <[email protected]> Co-developed-by: Mike Rapoport (Microsoft) <[email protected]> Acked-by: Pratyush Yadav <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mike Rapoport (Microsoft) <[email protected]>
13 lines
284 B
Plaintext
13 lines
284 B
Plaintext
CONFIG_BLK_DEV_INITRD=y
|
|
CONFIG_DEVTMPFS=y
|
|
CONFIG_KEXEC_FILE=y
|
|
CONFIG_KEXEC_HANDOVER=y
|
|
CONFIG_KEXEC_HANDOVER_ENABLE_DEFAULT=y
|
|
CONFIG_KEXEC_HANDOVER_DEBUGFS=y
|
|
CONFIG_KEXEC_HANDOVER_DEBUG=y
|
|
CONFIG_LIVEUPDATE=y
|
|
CONFIG_LIVEUPDATE_TEST=y
|
|
CONFIG_MEMFD_CREATE=y
|
|
CONFIG_TMPFS=y
|
|
CONFIG_SHMEM=y
|