[libvirt] [PATCH 2/5] Add helper library for testing the qemu monitor code

2012-08-20 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com To be able to test the QEMU monitor code, we need to have a fake QEMU monitor server. This introduces a simple (dumb) framework that can do this. The test case registers a series of items to be sent back as replies to commands that will be executed. A

Re: [libvirt] [PATCH 2/5] Add helper library for testing the qemu monitor code

2012-08-20 Thread Eric Blake
On 08/20/2012 07:49 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com To be able to test the QEMU monitor code, we need to have a fake QEMU monitor server. This introduces a simple (dumb) framework that can do this. The test case registers a series of items to be

Re: [libvirt] [PATCH 2/5] Add helper library for testing the qemu monitor code

2012-08-20 Thread Daniel P. Berrange
On Mon, Aug 20, 2012 at 08:11:14AM -0600, Eric Blake wrote: On 08/20/2012 07:49 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com To be able to test the QEMU monitor code, we need to have a fake QEMU monitor server. This introduces a simple (dumb) framework

Re: [libvirt] [PATCH 2/5] Add helper library for testing the qemu monitor code

2012-08-20 Thread Eric Blake
On 08/20/2012 08:13 AM, Daniel P. Berrange wrote: exclude_file_name_regexp--sc_libvirt_unmarked_diagnostics = \ - ^src/rpc/gendispatch\.pl$$ + ^(src/rpc/gendispatch\.pl$$|tests/) A rather heavy hammer for just one added test, but makes sense (tests aren't installed, so translating them is