1. 20 10月, 2015 1 次提交
  2. 09 10月, 2015 1 次提交
  3. 23 5月, 2015 1 次提交
    • J
      qtest: Add base64 encoded read/write · 7a6a740d
      John Snow 提交于
      For larger pieces of data that won't need to be debugged and
      viewing the hex nibbles is unlikely to be useful, we can encode
      data using base64 instead of encoding each byte as %02x, which
      leads to some space savings and faster reads/writes.
      
      For now, the default is left as hex nibbles in memwrite() and memread().
      For the purposes of making qtest io easier to read and debug, some
      callers may want to specify using the old encoding format for small
      patches of data where the savings from base64 wouldn't be that profound.
      
      memwrite/memread use a data encoding that takes 2x the size of the original
      buffer, but base64 uses "only" (4/3)x, so for larger buffers we can save a
      decent amount of time and space.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1430864578-22072-3-git-send-email-jsnow@redhat.com
      7a6a740d
  4. 29 4月, 2015 2 次提交
    • J
      libqtest: add qmp_async · ba4ed393
      John Snow 提交于
      Add qmp_async, which lets us send QMP commands asynchronously.
      This is useful when we want to send commands that will trigger
      event responses, but we don't know in what order to expect them.
      
      Sometimes the event responses may arrive even before the command
      confirmation will show up, so it is convenient to leave the responses
      in the stream.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1426018503-821-5-git-send-email-jsnow@redhat.com
      ba4ed393
    • J
      libqtest: add qmp_eventwait · 8fe941f7
      John Snow 提交于
      Allow the user to poll until a desired interrupt occurs.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1426018503-821-4-git-send-email-jsnow@redhat.com
      8fe941f7
  5. 31 3月, 2015 2 次提交
  6. 15 10月, 2014 1 次提交
  7. 08 9月, 2014 1 次提交
  8. 16 8月, 2014 1 次提交
  9. 01 4月, 2014 2 次提交
  10. 14 3月, 2014 1 次提交
  11. 13 3月, 2014 1 次提交
    • P
      libqtest: Avoid inline varargs functions · 0100f425
      Peter Maydell 提交于
      Older versions of gcc (eg 4.6) can't handle varargs functions declared
      inline for anything other than completely trivial uses, and complain:
      
      tests/qom-test.c: In function 'qmp': tests/libqtest.h:359:60: sorry,
      unimplemented: function 'qmp' can never be inlined because it uses
      variable argument lists
      
      Avoid this problem by putting the functions into libqtest.c instead
      of using inline definitions in libqtest.h.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NAndreas Färber <afaerber@suse.de>
      0100f425
  12. 07 11月, 2013 2 次提交
  13. 23 8月, 2013 1 次提交
  14. 19 7月, 2013 1 次提交
  15. 18 2月, 2013 3 次提交
  16. 12 2月, 2013 1 次提交
  17. 10 5月, 2012 1 次提交
  18. 30 3月, 2012 1 次提交