[PATCH v2 0/2] tests/qtest: Only run fuzz-tests when tested devices are available

Philippe Mathieu-Daudé posted 2 patches 3 years, 3 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210126111638.3141780-1-philmd@redhat.com
tests/qtest/fuzz-megasas-test.c     | 49 +++++++++++++++++++
tests/qtest/fuzz-test.c             | 76 -----------------------------
tests/qtest/fuzz-virtio-scsi-test.c | 75 ++++++++++++++++++++++++++++
MAINTAINERS                         |  2 +
tests/qtest/meson.build             |  5 +-
5 files changed, 130 insertions(+), 77 deletions(-)
create mode 100644 tests/qtest/fuzz-megasas-test.c
create mode 100644 tests/qtest/fuzz-virtio-scsi-test.c
[PATCH v2 0/2] tests/qtest: Only run fuzz-tests when tested devices are available
Posted by Philippe Mathieu-Daudé 3 years, 3 months ago
Some tests/qtest/fuzz-test fail when the device tested is
not available in the build. Fix this by only running the
test when devices are available.

FWIW Alexander Bulekov suggested an improvement, putting each
test in a directory named by the device tested. This series
does not cover that.

Supersedes: <20210115150936.3333282-1-philmd@redhat.com>

Philippe Mathieu-Daudé (2):
  tests/qtest: Only run fuzz-megasas-test if megasas device is available
  tests/qtest: Only run fuzz-virtio-scsi when virtio-scsi is available

 tests/qtest/fuzz-megasas-test.c     | 49 +++++++++++++++++++
 tests/qtest/fuzz-test.c             | 76 -----------------------------
 tests/qtest/fuzz-virtio-scsi-test.c | 75 ++++++++++++++++++++++++++++
 MAINTAINERS                         |  2 +
 tests/qtest/meson.build             |  5 +-
 5 files changed, 130 insertions(+), 77 deletions(-)
 create mode 100644 tests/qtest/fuzz-megasas-test.c
 create mode 100644 tests/qtest/fuzz-virtio-scsi-test.c

-- 
2.26.2


Re: [PATCH v2 0/2] tests/qtest: Only run fuzz-tests when tested devices are available
Posted by Philippe Mathieu-Daudé 3 years, 3 months ago
On 1/26/21 12:16 PM, Philippe Mathieu-Daudé wrote:
> Some tests/qtest/fuzz-test fail when the device tested is
> not available in the build. Fix this by only running the
> test when devices are available.

Forgot, since v1:

- Do not make the testing generic, keep it restricted to x86 (thuth)

> FWIW Alexander Bulekov suggested an improvement, putting each
> test in a directory named by the device tested. This series
> does not cover that.
> 
> Supersedes: <20210115150936.3333282-1-philmd@redhat.com>
> 
> Philippe Mathieu-Daudé (2):
>   tests/qtest: Only run fuzz-megasas-test if megasas device is available
>   tests/qtest: Only run fuzz-virtio-scsi when virtio-scsi is available