vhost-device/crates/scsi/test
Erik Schilling f50e7147df scsi: mention out-of-tree fuzzing infrastructure
Polishing this up for inclusion is currently not high on the priority
list, but we can at least link it.

Signed-off-by: Erik Schilling <erik.schilling@linaro.org>
2023-06-05 14:55:32 +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: mention out-of-tree fuzzing infrastructure 2023-06-05 14:55:32 +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-user-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.