vhost-device/crates/scsi/test
Stefano Garzarella 6305c66f22 scsi: replaced some leftover of vhost-user-scsi
There was some reference left in the documentation and sources to
"vhost-user-scsi" that we had changed during the rebase.
Let's change them to "vhost-device-scsi".

Everything should be safe.

We leave "vhost-user-scsi" in
crates/scsi/src/scsi/emulation/response_data.rs because it looks like
an identifier with some constant size. We will fix in the future.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
2023-07-24 12:15:23 +05:30
..
.containerignore scsi: add some helper scripts for testing 2023-06-05 14:55:32 +05:30
.gitignore scsi: add some helper scripts for testing 2023-06-05 14:55:32 +05:30
Containerfile scsi: add some helper scripts for testing 2023-06-05 14:55:32 +05:30
invoke-test.sh scsi: add some helper scripts for testing 2023-06-05 14:55:32 +05:30
README.md scsi: replaced some leftover of vhost-user-scsi 2023-07-24 12:15:23 +05:30
start-test.sh scsi: add some helper scripts for testing 2023-06-05 14:55:32 +05:30
test-script.sh scsi: add some helper scripts for testing 2023-06-05 14:55:32 +05:30

Testing tools

This folder contains some tooling for tests

Prerequisites

For running these tests, you need a KVM enabled x86_64 machine and podman.

vhost-device-scsi must have been built already.

Performed tests

Right now, the test harness will only run blktests against the target device (these tests are probably testing the guest kernel more than the actual device).

Test execution

Triggering the build of the necessary container images and invoking the tests is done by calling ./invoke-test.sh.

That will build the Containerfile, launch a container and invoke ./start-test.sh inside of the container. That will download a Fedora cloud image, launch the daemon, launch QEMU, waits until it is up and triggers the test execution.

Results will be downloaded into a timestamped folder under results/.

Other test tools

Some quick and dirty fuzzing code is available at https://github.com/Ablu/vhost-device/tree/scsi-fuzzing.