virshtest: Adapt 'virsh-read-bufsiz' and 'virsh-read-non-seekable'

Test both situations (reading from non-regular file and reading a file
larger than (arbitrary) buffer size) via 'virshtest'.

To feed the pipe we need to create a thread that does it, but otherwise
it's fairly straightforward.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa
2024-03-21 17:50:09 +01:00
parent 60cc7bd1c0
commit 3ace963662
5 changed files with 97 additions and 102 deletions

View File

@@ -691,8 +691,6 @@ if conf.has('WITH_LIBVIRTD')
'libvirtd-fail',
'libvirtd-pool',
'virsh-auth',
'virsh-read-bufsiz',
'virsh-read-non-seekable',
'virsh-self-test',
'virsh-uriprecedence',
'virt-admin-self-test',