]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virshtest: Add support for testing commands read from input file and adapt alias...
authorPeter Krempa <pkrempa@redhat.com>
Wed, 20 Mar 2024 08:48:32 +0000 (09:48 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 Apr 2024 12:24:30 +0000 (14:24 +0200)
commitfdaf2ffb04c95f8940e6ba367ce5b181aed300b4
tree387751fdc57daf35bf35e57baa69b78ef57d7c2e
parentf9dbd34c4994f514e92ea9d64f2542ad28a5fefb
virshtest: Add support for testing commands read from input file and adapt alias tests

Add support for reading a file and passing it to virsh in 'batch' mode
so that multiple commands can be easily tested with one invocation of
virsh.

To show how it's used adapt the alias handling tests to be invoked all
at once.

As in batch mode the arguments are read from a string and separated
inside virsh, one test is kept separate to be parsed in argv mode.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/virshtest.c
tests/virshtestdata/echo-alias.in [new file with mode: 0644]
tests/virshtestdata/echo-alias.out [new file with mode: 0644]