mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
test: Add virtio-pmem integration tests
Add 2 integration tests to validate virtio-pmem works as expected. One test takes care of checking the ability to read and write to this persistent memory from the guest, and validates that the data is carried over the virtualization boundary. The other test ensures the VM can be booted directly from an image that would be passed through virtio-pmem. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
committed by
Rob Bradford
parent
294c26bfb7
commit
785db6295e
@@ -24,6 +24,14 @@ if [ ! -f "$OS_IMAGE" ]; then
|
||||
popd
|
||||
fi
|
||||
|
||||
OS_RAW_IMAGE_NAME="clear-29810-cloud-raw.img"
|
||||
OS_RAW_IMAGE="$WORKLOADS_DIR/$OS_RAW_IMAGE_NAME"
|
||||
if [ ! -f "$OS_RAW_IMAGE" ]; then
|
||||
pushd $WORKLOADS_DIR
|
||||
qemu-img convert -p -f qcow2 -O raw $OS_IMAGE_NAME $OS_RAW_IMAGE_NAME
|
||||
popd
|
||||
fi
|
||||
|
||||
# Build generic kernel
|
||||
VMLINUX_IMAGE="$WORKLOADS_DIR/vmlinux"
|
||||
BZIMAGE_IMAGE="$WORKLOADS_DIR/bzImage"
|
||||
|
||||
Reference in New Issue
Block a user