1. 03 6月, 2014 2 次提交
    • P
      tests: Build virstoragetest only when storage driver is compiled too · 835dc013
      Peter Krempa 提交于
      virstoragetest now requires parts of the storage driver to be built.
      Without this change the test can't be compiled on platforms that don't
      build the storage driver (mingw).
      
      make[2]: *** No rule to make target `../src/libvirt_driver_storage_impl.la', needed by `virstoragetest.exe'.  Stop.
      
      Broken by commit 713cc3b0
      835dc013
    • P
      storage: Move virStorageFileGetMetadata to the storage driver · 713cc3b0
      Peter Krempa 提交于
      My future work will modify the metadata crawler function to use the
      storage driver file APIs to access the files instead of accessing them
      directly so that we will be able to request the metadata for remote
      files too. To avoid linking the storage driver to every helper file
      using the utils code, the backing chain traversal function needs to be
      moved to the storage driver source.
      
      Additionally the virt-aa-helper and virstoragetest programs need to be
      linked with the storage driver as a result of this change.
      713cc3b0
  2. 03 5月, 2014 1 次提交
  3. 02 5月, 2014 1 次提交
  4. 26 4月, 2014 1 次提交
  5. 25 4月, 2014 5 次提交
  6. 11 4月, 2014 1 次提交
    • J
      tests: Fix systemd test with --without-driver-modules · 844a5c1e
      Jiri Denemark 提交于
      Every test that makes use of virmock.h (only virsystemdtest as of now)
      needs to be linked with -export-dynamic to make sure the LD_PRELOADed
      mock library can access its wrap_* symbols. Normally,
      DRIVER_MODULE_LDFLAGS variable contains -export-dynamic but when
      --without-driver-modules configure option is used, DRIVER_MODULE_LDFLAGS
      is empty.
      
      This patch turns on -export-dynamic for all tests unconditionally
      regardless on --without-driver-modules. This fixes virsystemdtest and
      all future users of virmock.h.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      844a5c1e
  7. 09 4月, 2014 1 次提交
  8. 08 4月, 2014 4 次提交
  9. 07 4月, 2014 1 次提交
  10. 27 3月, 2014 1 次提交
    • R
      bhyve: add xml2args unittest · 1994d2dd
      Roman Bogorodskiy 提交于
      At this point unittest covers 4 basic cases:
      
       - minimal working XML for bhyve
       - same as above, but with virtio disk
       - ACPI and APIC args test
       - MAC address test
      1994d2dd
  11. 26 3月, 2014 1 次提交
    • F
      qemu: add unit tests for the capabilities xml · 231b63e3
      Francesco Romani 提交于
      The test is loosely inspired from qemucapabilitiestest
      and qemuxml2xmltest.
      
      Added a new test instead of extending an existing one because
      the feature being tested don't really fits nicely in any
      existing place.
      231b63e3
  12. 21 3月, 2014 2 次提交
  13. 19 3月, 2014 1 次提交
  14. 18 3月, 2014 1 次提交
  15. 13 3月, 2014 1 次提交
  16. 11 3月, 2014 2 次提交
  17. 07 3月, 2014 1 次提交
  18. 03 3月, 2014 2 次提交
  19. 26 2月, 2014 1 次提交
    • E
      build: avoid ld_preload tests on mingw · f2dc1f67
      Eric Blake 提交于
      Running ./autobuild.sh complained during the mingw cross-compile:
      
        CC       libvirportallocatormock_la-virportallocatortest.lo
      ../../tests/virportallocatortest.c:32:20: fatal error: dlfcn.h: No such file or directory
       # include <dlfcn.h>
                          ^
      compilation terminated.  With that fixed, the next failure was:
      
        CCLD     qemuxml2argvmock.la
      libtool: link: libtool library `qemuxml2argvmock.la' must begin with `lib'
      libtool: link: Try `libtool --help --mode=link' for more information.
      
      While we don't need to limit all LD_PRELOAD tests to just Linux, we
      do need to limit them to platforms that actually support loading;
      we also need to avoid building qemu tests when qemu is not enabled.
      
      * tests/virportallocatortest.c: Make conditional on <dlfcn.h>.
      * tests/Makefile.am (test_libraries): Only build qemu mock library
      when building qemu tests.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      f2dc1f67
  20. 20 2月, 2014 1 次提交
  21. 14 2月, 2014 3 次提交
  22. 13 2月, 2014 1 次提交
    • C
      LXC driver: started implementing connectDomainXMLFromNative · 7195c807
      Cédric Bosdonnat 提交于
      This function aims at converting LXC configuration into a libvirt
      domain XML description to help users migrate from LXC to libvirt.
      
      Here is an example of how the lxc configuration works:
      virsh -c lxc:/// domxml-from-native lxc-tools /var/lib/lxc/migrate_test/config
      
      It is possible that some parts couldn't be properly mapped into a
      domain XML fragment, so users should carefully review the result
      before creating the domain.
      
      fstab files in lxc.mount lines will need to be merged into the
      configuration file as lxc.mount.entry.
      
      As we can't know the amount of memory of the host, we have to set a
      default value for max_balloon that users will probably want to adjust.
      7195c807
  23. 11 2月, 2014 1 次提交
  24. 06 2月, 2014 1 次提交
    • M
      qemuxml2argvtest: Test localtime clock basis · e505db0f
      Michal Privoznik 提交于
      When trying to introduce a test for previous patch, I've
      noticed that the command line is constructed using current
      time. This won't work in our test suite (unless you guys
      wants to set a specific time prior to each test run :) ).
      Therefore we need to mock calls to time(2) to return the
      same value every time it's called.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      e505db0f
  25. 04 2月, 2014 2 次提交
    • J
      tests: Add test for new virkmod functions · 02bf6568
      John Ferlan 提交于
      Adding tests for new virKMod{Config|Load|Unload}() API's.
      
      A test for virKModIsBlacklisted() would require some setup which cannot
      be assumed.
      02bf6568
    • M
      virnetdevbandwidthtest: Link with libxml2 · defec0de
      Michal Privoznik 提交于
      I've received a notice over IRC that on some systems, the
      virnetdevbandwidthtest is not linked with libxml:
      
        /usr/bin/ld: virnetdevbandwidthtest.o: undefined reference to symbol 'xmlStrEqual@@LIBXML2_2.4.30'
        /usr/lib/x86_64-linux-gnu/libxml2.so.2: error adding symbols: DSO missing from command line
      
      Trivial way avoiding this is to add LIBXML_LIBS to
      virnetdevbandwidthtest_LDADD.
      defec0de
  26. 30 1月, 2014 1 次提交