-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# 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](https://github.com/bitdefender/libkvmi) | ||
- [`virsh`](https://libvirt.org/manpages/virsh.html) 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 | ||
~~~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,3 @@ | ||
# 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](https://github.com/bitdefender/libkvmi) | ||
- [`virsh`](https://libvirt.org/manpages/virsh.html) 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 | ||
~~~ | ||
[documentation](https://wenzel.github.io/libmicrovmi/developer/tests.html) |