1. 01 2月, 2013 1 次提交
    • E
      tests: add a comment about our fake qmp · 949ebc30
      Eric Blake 提交于
      While testing QMP, I used a simple qemu session of
      'qemu-kvm -M none -nodefaults -nographic -qmp stdio'
      for some experiments.  But it took me far too long to remember
      the magic invocation to unlock QMP into accepting normal commands.
      While I was able to grep libvirt sources and easily find where
      libvirt expects the normal "QMP" greeting, I could not find the
      proper reply to that greeting nearby.
      
      Reading the testsuite didn't help either, since there we don't
      emulate the mandatory handshake.  But since my grep hit the
      testsuite, adding a bit of documentation will make it much easier
      to jog my memory in the future.
      
      * tests/qemumonitortestutils.c (QEMU_JSON_GREETING): Mention that
      the normal counterpart reply is skipped.
      949ebc30
  2. 23 1月, 2013 1 次提交
    • J
      tests: Need to initialize 'test' properly on error path · 35c30522
      John Ferlan 提交于
      In the error path, the test buffer is free'd, but due to how the free
      routine is written the 'test' buffer pointer does not return to the caller
      as NULL and then the free'd buffer address is returned to the caller.
      35c30522
  3. 16 1月, 2013 1 次提交
  4. 21 12月, 2012 5 次提交
  5. 13 11月, 2012 2 次提交
  6. 31 10月, 2012 1 次提交
  7. 21 9月, 2012 1 次提交
  8. 13 9月, 2012 1 次提交
  9. 07 9月, 2012 1 次提交
    • D
      Add helper library for testing the qemu monitor code · 8d78fd04
      Daniel P. Berrange 提交于
      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
      thread runs the event loop looking for incoming replies and
      sending back this pre-registered data. This allows testing all
      QEMU monitor code that deals with parsing responses and errors
      from QEMU, without needing QEMU around
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      8d78fd04