1. 03 5月, 2018 1 次提交
  2. 18 4月, 2018 2 次提交
  3. 17 4月, 2018 1 次提交
  4. 10 4月, 2018 5 次提交
  5. 03 4月, 2018 1 次提交
    • P
      tests: qemuxml2argv: Allow testing of config processed at startup · f0a528ce
      Peter Krempa 提交于
      Add a new kind of XML output test for the files in qemuxml2argvtest
      where we can validate setup and defaults applied when starting up the
      VM.
      
      This is achieved by formatting of the definition processed by the
      qemuxml2argvtest into a XML and it's compared against files in
      qemuxml2startupxmloutdata. This test is automatically executed if the
      output file is present and it's skipped otherwise.
      
      The first example test case is created from 'disk-drive-shared' test
      case.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      f0a528ce
  6. 23 3月, 2018 3 次提交
  7. 14 3月, 2018 1 次提交
  8. 13 3月, 2018 2 次提交
  9. 27 2月, 2018 1 次提交
  10. 19 2月, 2018 2 次提交
  11. 12 2月, 2018 1 次提交
  12. 09 2月, 2018 1 次提交
    • D
      conf: expand network device callbacks to cover resolving NIC type · a455d41e
      Daniel P. Berrangé 提交于
      Currently the QEMU driver will call directly into the network driver
      impl to modify resolve the atual type of NICs with type=network. It
      has todo this before it has allocated the actual NIC. This introduces
      a callback system to allow us to decouple the QEMU driver from the
      network driver.
      
      This is a short term step, as it ought to be possible to achieve the
      same end goal by simply querying XML via the public network API. The
      QEMU code in question though, has no virConnectPtr conveniently
      available at this time.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      a455d41e
  13. 26 1月, 2018 1 次提交
  14. 18 11月, 2017 2 次提交
    • M
      tests: Remove pointless _CFLAGS variables · e3996415
      Martin Kletzander 提交于
      If _CFLAGS for a binary is not specified it uses AM_CFLAGS.  So doing
      
        $binary_CFLAGS = $(AM_CFLAGS)
      
      or
      
        $binary_CFLAGS = $(AM_CFLAGS) $(something_that_is_already_in_AM_CFLAGS)
      
      is pointless.  So remove it for cleaner Makefile.am
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      e3996415
    • M
      build: Use XDR_CFLAGS in more places · 74a13be4
      Martin Kletzander 提交于
      Since update to glibc-2.26 removed the /usr/include/rpc/rpc.h we used until now,
      it showed us a problem with not using XDR_CFLAGS properly.  On linux that
      variable has usually -I/usr/include/tirpc because we already probe for it
      properly, we just don't use it everywhere we need.  It is needed by wireshark
      dissector as well as testutilsqemu.c (through includes) so the build fails with:
      
      wireshark/src/packet-libvirt.c:33:10: fatal error: rpc/xdr.h: No such file or directory
       #include <rpc/xdr.h>
                ^~~~~~~~~~~
      
      and
      
      In file included from ../src/logging/log_manager.h:29:0,
                       from ../src/qemu/qemu_domain.h:40,
                       from testutilsqemu.c:11:
      ../src/logging/log_protocol.h:9:10: fatal error: rpc/rpc.h: No such file or directory
       #include <rpc/rpc.h>
                ^~~~~~~~~~~
      
      Since lot of tests use testutilsqemu.c it is easier to add XDR_CFLAGS to
      AM_CFLAGS than adding it to all $binary_CFLAGS.  It's just for tests and we
      already have bunch of CFLAGS there anyway.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      74a13be4
  15. 07 11月, 2017 1 次提交
  16. 03 11月, 2017 1 次提交
    • A
      Remove backslash alignment attempts · 3e7db8d3
      Andrea Bolognani 提交于
      Right-aligning backslashes when defining macros or using complex
      commands in Makefiles looks cute, but as soon as any changes is
      required to the code you end up with either distractingly broken
      alignment or unnecessarily big diffs where most of the changes
      are just pushing all backslashes a few characters to one side.
      
      Generated using
      
        $ git grep -El '[[:blank:]][[:blank:]]\\$' | \
          grep -E '*\.([chx]|am|mk)$$' | \
          while read f; do \
            sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
          done
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      3e7db8d3
  17. 20 9月, 2017 1 次提交
    • D
      Stop linking tests/commandhelper to libvirt code · eae746b2
      Daniel P. Berrange 提交于
      The commandhelper binary is a helper for commandtest that
      validates what file handles were inherited. For this to
      work reliably we must not have any libraries that leak
      file descriptors into commandhelper. Unfortunately some
      versions of gnutls will intentionally open file handles
      at library load time via a constructor function.
      
      We previously hacked around this in
      
        commit 4cbc15d0
        Author: Martin Kletzander <mkletzan@redhat.com>
        Date:   Fri May 2 09:55:52 2014 +0200
      
          tests: don't fail with newer gnutls
      
          gnutls-3.3.0 and newer leaves 2 FDs open in order to be backwards
          compatible when it comes to chrooted binaries [1].  Linking
          commandhelper with gnutls then leaves these two FDs open and
          commandtest fails thanks to that.  This patch does not link
          commandhelper with libvirt.la, but rather only the utilities making
          the test pass.
      
          Based on suggestion from Daniel [2].
      
          [1] http://lists.gnutls.org/pipermail/gnutls-help/2014-April/003429.html
          [2] https://www.redhat.com/archives/libvir-list/2014-April/msg01119.html
      
      That fix relied on fact that while libvirt.so linked with
      gnutls, libvirt_util.la did not link to it.  With the
      introduction of the util/vircrypto.c file that assumption
      is no longer valid. We must not link to libvirt_util.la
      at all - only gnulib and libc can (hopefully) be relied
      on not to open random file descriptors in constructors.
      Reviewed-by: NMartin Kletzander <mkletzan@redhat.com>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      eae746b2
  18. 19 9月, 2017 1 次提交
  19. 05 8月, 2017 1 次提交
    • J
      libxl: Add a test suite for libxl_domain_config generator · d8e8b63d
      Jim Fehlig 提交于
      The libxl library allows a libxl_domain_config object to be serialized
      from/to a JSON string. Use this to allow testing of the XML to
      libxl_domain_config conversion process. Test XML is converted to
      libxl_domain_config, which is then serialized to json. A json template
      corresponding to the test XML is converted to a libxl_domain_config
      object using libxl_domain_config_from_json(), and then serialized
      back to json using libxl_domain_config_to_json(). The two json
      docs are then compared.
      
      Using libxl to convert the json template to a libxl_domain_config
      object and then back to json provides a simple way to account for
      any changes or additions to the json representation across Xen
      releases.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      [update to v3.5.0-rc1, improve error reporting, use /bin/true emulator]
      Signed-off-by: NMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
      d8e8b63d
  20. 28 7月, 2017 2 次提交
  21. 27 7月, 2017 5 次提交
  22. 26 7月, 2017 2 次提交
  23. 19 7月, 2017 1 次提交
  24. 13 7月, 2017 1 次提交