]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virshtest: Prepare for simpler testing - echo tests
authorPeter Krempa <pkrempa@redhat.com>
Tue, 12 Mar 2024 12:38:24 +0000 (13:38 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 Apr 2024 12:24:30 +0000 (14:24 +0200)
commitc63b5ee98becfa0453d441782d65478aeea94a18
tree347395f949ab7d9987bd7e74564272ca898d7133
parent5fd0653a3925add461fdb82ed10bc2f72cd5920f
virshtest: Prepare for simpler testing - echo tests

Embedding the expected output in a C source code makes it very hard to
extend tests. In order to be able to test the outputs against data in
files on disk we need better naming of the tests themselves.

Use virTestCounterNext/Reset with appropriate tags to give reasonable
names to the 'virsh echo' tests' and prepare the 'DO_TEST' macro for
wider use.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/virshtest.c