1. 08 1月, 2019 1 次提交
  2. 19 12月, 2018 1 次提交
  3. 14 12月, 2018 1 次提交
  4. 13 12月, 2018 1 次提交
  5. 10 10月, 2018 1 次提交
    • M
      virfiletst: Test virFileIsSharedFS · a7b4eb7d
      Michal Privoznik 提交于
      Introduce some basic test cases for virFileIsSharedFS(). More
      will be added later. In order to achieve desired result, mocks
      for setmntent() and statfs() need to be invented because the
      first thing that virFileIsSharedFS() does is calling the latter.
      If it finds a FUSE mount it'll call the former.
      
      The mock might look a bit complicated, but in fact it's quite
      simple. The test sets LIBVIRT_MTAB env variable to hold the
      absolute path to a file containing mount table. Then, statfs()
      returns matching FS it finds, and setmntent() is there just to
      replace /proc/mounts with the file the test wants to load.
      
      Adding this test also exposed a bug we have - because we assume
      the given path points to a file we cut off what we assume is a
      file name to obtain directory path and only then we call
      statfs(). This is buggy because the passed path could be already
      a mount point.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJiri Denemark <jdenemar@redhat.com>
      a7b4eb7d
  6. 17 9月, 2018 1 次提交
  7. 24 8月, 2018 1 次提交
    • S
      vsh: Added tests · 95785c1c
      Simon Kobyda 提交于
      For now, there are 9 test cases
      - testVshTableNew: Creating table with empty header
      - testVshTableHeader: Printing table with/without header
      - testVshTableRowAppend: Appending row with various number of cells.
        Only row with same number of cells as in header is accepted.
      - testUnicode: Printing table with unicode characters.
        Checking correct alignment.
      - testUnicodeArabic: test opposite (right to left) writing
      - testUnicodeZeroWidthChar
      - testUnicodeCombiningChar
      - testUnicodeNonPrintableChar,
      - testNTables: Create and print varios types of tables - one column,
        one row table, table without content, standart table...
      Signed-off-by: NSimon Kobyda <skobyda@redhat.com>
      95785c1c
  8. 13 8月, 2018 1 次提交
  9. 18 7月, 2018 1 次提交
  10. 10 7月, 2018 1 次提交
  11. 26 6月, 2018 1 次提交
  12. 05 6月, 2018 1 次提交
  13. 23 5月, 2018 1 次提交
  14. 15 5月, 2018 1 次提交
    • M
      tests: Link mocks with libvirt.so · f50ad2ff
      Michal Privoznik 提交于
      In a lot of our mocks (if not all of them) we use our internal
      APIs (e.g. VIR_ALLOC). So far, we're relying on test binary that
      links with the mock to drag in libvirt.so. Well, this works only
      partially. Firstly, whatever binary we execute from tests will
      fail (e.g. as Martin reported on the list ./qemucapsprobe fails
      to execute qemu). Secondly, if there's a program that tries to
      validate linking (like valgrind is doing) it fails because of
      unresolved symbols.
      
      Because of that we have to link our mocks with libvirt.so.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      f50ad2ff
  15. 07 5月, 2018 2 次提交
  16. 03 5月, 2018 1 次提交
  17. 18 4月, 2018 2 次提交
  18. 17 4月, 2018 1 次提交
  19. 10 4月, 2018 5 次提交
  20. 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
  21. 23 3月, 2018 3 次提交
  22. 14 3月, 2018 1 次提交
  23. 13 3月, 2018 2 次提交
  24. 27 2月, 2018 1 次提交
  25. 19 2月, 2018 2 次提交
  26. 12 2月, 2018 1 次提交
  27. 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
  28. 26 1月, 2018 1 次提交
  29. 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