ToDo/QMPTesting
QMP Testing TODO
This page describes the work to be done on improving QMP test coverage and quality. We have the following tools/framework available:
- QEMU's unit-tests
- kvm-autotest
- libvirt-TCK
unit-tests
C level testing, used to check QEMU's internal APIs.
Currently we have a good coverage of QObjects types (QInt, QString, etc) and the JSON parser. We need to test as much Monitor code as possible, however there are two difficulties associated with this:
- Monitor code is not modular and has not been designed with unit-tests in mind
- It's unlikely that it will be possible to test handlers code this way, as most of them depends on other subsystems
Item 1 will be solved when the current monitor redesign work is finished.
TODO:
- Fix problems in current unit-tests (try compiling and running them to see what happens)
- Introduce a unit-test tree structure in QEMU
- Add a 'make test' target, which runs *all* QEMU's unit-tests
- Add unit-tests for new monitor code