]> git.ipfire.org Git - thirdparty/qemu.git/commit
QemuOpt: add unit tests
authorLeandro Dorileo <l@dorileo.org>
Mon, 19 May 2014 21:53:55 +0000 (18:53 -0300)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 28 May 2014 12:27:42 +0000 (14:27 +0200)
commit4ba6fabfb447661ee44ee593b2c454c7ffd1183f
treef4dc795ba2c35a3f27c354dac533017d6bd6eff0
parent7cf6376ae80e320fdaa6c9020f3e8ac1eecf1307
QemuOpt: add unit tests

Cover basic aspects and API usage for QemuOpt. The current implementation
covers the API's planned to be changed by Chunyan Liu in his QEMUOptionParameter
replacement/cleanup job.

Other APIs should be covered in future improvements.

[Squashing in a small fix "QemuOpt: use qemu_find_opts_err() to avoid
output on stderr in tests".

qemu_find_opts() calls error_report() instead of propagating the Error
object.  It is undesirable to clutter test case output with error
messages from a passing test.

Use qemu_find_opts_err() to avoid the output on stderr.
--Stefan]

Signed-off-by: Leandro Dorileo <l@dorileo.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/Makefile
tests/test-qemu-opts.c [new file with mode: 0644]