]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virshtest: Adapt 'virsh-read-bufsiz' and 'virsh-read-non-seekable'
authorPeter Krempa <pkrempa@redhat.com>
Thu, 21 Mar 2024 16:50:09 +0000 (17:50 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 Apr 2024 12:24:30 +0000 (14:24 +0200)
commit3ace9636626a6adbc4bb9f94b0a74f3ea7d4c3e9
treeaf74824ca134ae7eacd324867b79ac66c1c2c0ea
parent60cc7bd1c01f2885b103810e92ae839f0a3c5a67
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>
tests/meson.build
tests/virsh-read-bufsiz [deleted file]
tests/virsh-read-non-seekable [deleted file]
tests/virshtest.c
tests/virshtestdata/read-big-pipe.out [new file with mode: 0644]