Re: Questions about using qemuProcess API within a libvirt test

2020-02-14 Thread Collin Walling
Much appreciated to you both for the well-written explanations. I'll keep my libvirt tests to mock input/output responses and find an alternative test suite for using libvirt with a real QEMU instance. Thank you for your time! -- Respectfully, - Collin Walling

Re: Questions about using qemuProcess API within a libvirt test

2020-02-11 Thread Michal Privoznik
On 2/10/20 10:01 PM, Collin Walling wrote: Hello, Apart from what Laine said, this looks like your test binary is missing event loop. The way sending QMP commands work is that you have one thread, that wants to send a QMP command. It will construct the command, format JSON string out of it

Re: Questions about using qemuProcess API within a libvirt test

2020-02-11 Thread Laine Stump
On 2/10/20 4:01 PM, Collin Walling wrote: Hello, I am working on implementing libvirt test cases for the hypervisor-cpu-compare and -baseline commands. Ideally, I would like to take advantage of the qemuProcess API to spin up a QEMU instance and run these commands to test real data queried from

Questions about using qemuProcess API within a libvirt test

2020-02-10 Thread Collin Walling
Hello, I am working on implementing libvirt test cases for the hypervisor-cpu-compare and -baseline commands. Ideally, I would like to take advantage of the qemuProcess API to spin up a QEMU instance and run these commands to test real data queried from the hypervisor. However, I am having