On 9/26/19 11:05 AM, Peter Krempa wrote:
Validate all the commands against the schema. Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx> --- tests/qemumonitorjsontest.c | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+)
+ + if (qemuMonitorTransactionBitmapAdd(actions, "node1", "bitmap1", true, true) < 0 || + qemuMonitorTransactionBitmapRemove(actions, "node2", "bitmap2") < 0 || + qemuMonitorTransactionBitmapEnable(actions, "node3", "bitmap3") < 0 || + qemuMonitorTransactionBitmapDisable(actions, "node4", "bitmap4") < 0 || + qemuMonitorTransactionBitmapMerge(actions, "node5", "bitmap5", &mergebitmaps) < 0 || + qemuMonitorTransactionSnapshotLegacy(actions, "dev6", "path", "qcow2", true) < 0 || + qemuMonitorTransactionSnapshotBlockdev(actions, "node7", "overlay7") < 0) + return -1;
The sequence of transactioned commands don't have to match reality, just exercise code paths ;)
Reviewed-by: Eric Blake <eblake@xxxxxxxxxx> -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list