]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: qemuxml2argv: add va_arg enum handling
authorCole Robinson <crobinso@redhat.com>
Wed, 13 Mar 2019 22:25:21 +0000 (18:25 -0400)
committerCole Robinson <crobinso@redhat.com>
Thu, 21 Mar 2019 16:43:01 +0000 (12:43 -0400)
commitfdf6c89ee7b4dc663dfdc2194bec9be520d3af96
treea3b857ee8c525352422952454c3947f42fef3933
parent6433783be32f5f1f1cc436e47f7bf05eed6f4f2e
tests: qemuxml2argv: add va_arg enum handling

This establishes a pattern that will allow us to make test macros
more general purpose, by taking optional arguments. The general
format will be:

DO_TEST_FULL(...
             ARG_FOO, <value1>,
             ARG_BAR, <value2>)

ARG_X are just enum values that we look for in the va_args and know
how to interpret.

Implement this for the existing implicit qemuCaps va_args

Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
tests/qemuxml2argvtest.c