1. 25 3月, 2016 1 次提交
  2. 24 3月, 2016 3 次提交
  3. 23 3月, 2016 2 次提交
    • M
      qemuxml2argv: Mock virSCSIDeviceGetSgName · 4b527c1a
      Michal Privoznik 提交于
      When constructing SCSI hostdev command line for qemu, the
      /sys/bus/scsi/devices/... dir is scanned. Unfortunately, even in
      the tests. This is needed to determine the name of SCSI device to
      passthrough to qemu, because in the domain XML we were given its
      address instead. Anyway, we should not be touching live system
      data in our test suite as it produced unpredictable results. The
      test is regressing from 1e9a0837 on.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      4b527c1a
    • A
      tests: hostdev: Add more tests · ee07c980
      Andrea Bolognani 提交于
      Ensure the code behaves properly even for situations that were not
      being considered before, such as simply detaching devices from the
      host without attaching them to a guest and attaching devices as
      managed even though they had already been manually detached from
      the host.
      ee07c980
  4. 22 3月, 2016 7 次提交
  5. 21 3月, 2016 4 次提交
    • J
      xenconfig: change 'hap' setting to align with Xen behavior · 4c9ffc53
      Jim Fehlig 提交于
      hap is enabled by default in xm and xl config and usually only
      specified when it is desirable to disable hap (hap = 0). Change
      the xm,xl <-> xml converter to behave similarly. I.e. only
      produce 'hap = 0' when <hap state='off'/> and vice versa.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      4c9ffc53
    • M
      util: Add virSocketAddrSetIPv[46]AddrNetOrder and use it · 573c41a2
      Martin Kletzander 提交于
      This allows setting the address in host and/or network order and makes
      the naming consistent.  Now you don't need to call [hn]to[nh]l()
      functions as that is taken care of by these functions.  Also, now
      the *NetOrder take the address in network order, the other functions in
      host order so the naming and usage is consistent.  Some places were
      having the address in network order and calling ntohl() just so the
      original function can call htonl() again.  This makes it nicer to read.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      573c41a2
    • C
      qemu: Don't add -spice port=0 when no port is specified · 6d28ef91
      Christophe Fergeau 提交于
      If a <graphics type='spice'> has no port nor tlsPort set, the generated
      QEMU command line will contain -spice port=0.
      This is later going to be ignored by spice-server, but it's better not
      to add it at all in this situation.
      As an empty -spice is not allowed, we still need to append port=0 if we
      did not add any other argument.
      6d28ef91
    • C
      qemu: Omit SPICE address if no port is specified · 8dab3d1d
      Christophe Fergeau 提交于
      Currently -spice addr=127.0.0.1 is generated, but spice-server is going
      to ignore this as no port is specified.
      8dab3d1d
  6. 20 3月, 2016 1 次提交
  7. 19 3月, 2016 4 次提交
    • M
      nodedev: Expose PCI header type · d77ffb68
      Martin Kletzander 提交于
      If we expose this information, which is one byte in every PCI config
      file, we let all mgmt apps know whether the device itself is an endpoint
      or not so it's easier for them to decide whether such device can be
      passed through into a VM (endpoint) or not (*-bridge).
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1317531Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      d77ffb68
    • M
      tests: Introduce nsslinktest · 5bcd96f5
      Michal Privoznik 提交于
      The only purpose of this test is to catch possible linking
      problems with libnss_libvirt.so.2.
      One of the problems I faced was that the NSS plugin was unloaded
      immediately after it got loaded and the name resolution process
      continued with next configured option. Without any error. It was
      very hard to debug why until I created this simple test and found
      out immediately that there were some symbols missing. The reason
      why problem was not caught in nsstest is that in the test we want
      to use all the fancy stuff and therefore link it with libvirt.la.
      So even if there's a symbol missing in the NSS plugin it will be
      found in the libvirt.la.
      But even after I resolved the issue we still need this test
      because files the NSS plugin is built from are still live (mostly
      those under utils/ dir). So as they change new symbol might be
      required which would render the NSS plugin unusable.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      5bcd96f5
    • M
      nss: Introduce a test · 38e32d4a
      Michal Privoznik 提交于
      A small test to see how is the nss module working.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      38e32d4a
    • M
      nss: Implement _nss_libvirt_gethostbyname3_r · 7dbcb26f
      Michal Privoznik 提交于
      The implementation is pretty straightforward. Moreover, because
      of the nature of things, gethostbyname_r and gethostbyname2_r can
      be implemented at the same time too.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      7dbcb26f
  8. 18 3月, 2016 4 次提交
    • J
      tests: add schema test for default cache mode · adddaff1
      Jim Fehlig 提交于
      None of the existing domXML configs under tests/* specify a
      default cache mode since default generally means "use the
      hypervisor default" and is left unset by the various hypervisor
      drivers. Add a config to tests/domainschemadata that specifies
      cache='default'.
      adddaff1
    • J
      tests: add xlconfigdata to domainschematests · 1a01e879
      Jim Fehlig 提交于
      Include the XML files under tests/xlconfigdata in the domain
      schema tests
      1a01e879
    • M
      tests: Set PATH in each test · 363b401f
      Michal Privoznik 提交于
      Currently we spawn couple of binaries in our test suite.
      Moreover, we provide some spoofed versions of system binaries
      hoping that those will be executed instead of the system ones.
      For instance, for testing SSH socket we have written our own ssh
      binary for producing predictable results. We certainly don't want
      to execute the system ssh binary.
      However, in order to prefer our binaries over system ones, we
      need to set PATH environment variable. But this is done only at
      the Makefile level. So if anybody runs a test by hand that
      expects our spoofed binary, the test ends up executing real
      system binaries. This is not good. In fact, it's terribly wrong.
      The fix lies in a small trick - putting our build directory at
      the beginning of the PATH environment variable in each test.
      Hopefully, since every test has this VIRT_TEST_MAIN* wrapper, we
      can fix this at a single place.
      Moreover, while this removes setting PATH for our tests written
      in bash, it's safe as we are not calling anything ours that would
      require PATH change there.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      363b401f
    • M
      Drop paths.h include · 865764de
      Michal Privoznik 提交于
      We include the file in plenty of places. This is mostly due to
      historical reasons. The only place that needs something from the
      header file is storage_backend_fs which opens _PATH_MOUNTED. But
      it gets the file included indirectly via mntent.h. At no other
      place in our code we need _PATH_.*. Drop the include and
      configure check then.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      865764de
  9. 16 3月, 2016 2 次提交
    • E
      tests: Add a new test for logging outputs parser · 6bd9758e
      Erik Skultety 提交于
      Test for parser's functionality.
      6bd9758e
    • E
      tests: Slightly tweak virlogtest · 814b2ec6
      Erik Skultety 提交于
      Patch adds a generic DO_TEST_FULL macro, some PASS/FAIL macros to better
      visually distinguish tests that should fail and tests that should pass. Also,
      some cosmetic changes like renames and direct call to fprintf is replaced with
      our VIR_TEST_DEBUG macro, as using testutils should be our preferred way of
      reporting errors in tests.
      814b2ec6
  10. 11 3月, 2016 5 次提交
  11. 10 3月, 2016 2 次提交
  12. 08 3月, 2016 5 次提交