Integration tests

Instructions for all tests:

  • Update the values in tests/common/config.rs according to your environment
  • cargo test -- --nocapture: displays the log output, useful for debugging

KVM

Requirements

  • virtual machine already configured to be introspected by KVM-VMI
  • VM snapshot with live state
  • libkvmi
  • virsh tool: (libvirt-clients package)

The VM state between each test is handled by the following commands:

  • setup: virsh snapshot-revert <vm_name> --current --running
  • teardown: virsh destroy <vm_name>

Execution

cargo test --feature kvm