1. 11 Jun, 2018 1 commit
  2. 08 Jun, 2018 3 commits
  3. 04 Jun, 2018 2 commits
  4. 06 Mar, 2018 2 commits
  5. 09 Feb, 2018 3 commits
  6. 08 Feb, 2018 1 commit
    • Laine Stump's avatar
      create vms that use virt-builder images with no graphics and virtio-net · 2299d168
      Laine Stump authored
      This is consistent with what is used to create the disk image supplied
      by virt-builder. It doesn't currently affect the outcome of the test,
      but it's possible that in the future it could.
      
      In particular, the network device name changes depending on whether or
      not there is a graphics device (due to change in PCI address). The
      virt-builder image is create by installing Fedora on a guest that has
      no graphics card, so it sees the network device as "ens2" and creates
      an appropriate ifcfg-ens2, but if you boot the image with a graphics
      card, then the network device will be named "ens3". It turns out that
      NetworkManager is enabled by default on the virt-builder images, and
      NetworkManager will listen for dhcp on *all* interfaces (not just
      those with a configuration file), so networking still functions on the
      guest, but if a test script were to try to use "ifdown ens3" (for
      example) that wouldn't work.
      
      The best solution may be to have the image set "biosdevnames=0
      net.ifnames=0" on the kernel commandline (so that the netdev is always
      called "eth0" regardless of its PCI address), but that would also need
      to be done in the kickstart file used to create the image, which is
      done offline by libguestfs people, so it's not something we have
      control over here.
      Signed-off-by: 's avatarLaine Stump <laine@laine.org>
      Reviewed-by: 's avatarDaniel P. Berrange <berrange@redhat.com>
      2299d168
  7. 06 Feb, 2018 1 commit
  8. 11 Aug, 2016 1 commit
  9. 29 Jul, 2016 2 commits
  10. 29 Sep, 2015 3 commits
  11. 27 Jan, 2015 1 commit
    • Mike Latimer's avatar
      Prevent list_snapshots from causing test cleanup failure · d8afa058
      Mike Latimer authored
      When TCK cleans up a test domain, existing snapshots are deleted. However,
      not all drivers (e.g. libxl) support snapshots. When such a driver is
      involved, the following error is reported and the testkit fails to cleanup
      the domain:
      
        libvirt error code: 3, message: this function is not supported by the
        connection driver: virDomainSnapshotNum
      
      Rather than erroring out, list_snapshots should be protected using eval. In
      the event the underlying driver does not support snapshots, an empty list is
      returned, and no snapshot deletion is attempted. (Note - It is the listing
      of snapshots that is causing the error, not the attempt to delete them.)
      d8afa058
  12. 28 Mar, 2014 3 commits
  13. 27 Mar, 2014 1 commit
    • Mike Latimer's avatar
      Prefer kvm domains if multiple domain types exist · 776ec8b5
      Mike Latimer authored
      When matching capabilities of a guest, if multiple domain types exist (for
      example, 'qemu' and 'kvm') the order in which they are returned can change.
      
      To avoid unpredictable test results, this patch prefers kvm if that domain
      type exists. If not, the behavior matches what existed before, and the first
      domain type is returned.
      776ec8b5
  14. 26 Aug, 2011 2 commits
  15. 29 Jun, 2011 1 commit
  16. 09 Sep, 2010 1 commit
  17. 22 Jun, 2010 1 commit
    • Daniel P. Berrange's avatar
      Add test cases for unique ID interactions with caching · f5b0888c
      Daniel P. Berrange authored
      Add test cases to ensure that correct UUIDs are reported after
      creating two guests in sequence with the same name, but different
      UUIDs. This is common during provisioning if an initial attempt
      fails and needs to be retried.
      
      * lib/Sys/Virt/TCK.pm: Set bridge name to match network name for the
        virtual networks
      * scripts/domain/082-unique-id-caching.t,
        scripts/domain/082-unique-id-caching.t,
        scripts/networks/082-unique-id-caching.t: Add tests for unique
        ID caching
      f5b0888c
  18. 27 May, 2010 1 commit
    • Daniel P. Berrange's avatar
      Duplicate basic domain test cases for network + storage pools · 1b9b8b84
      Daniel P. Berrange authored
      Duplicate all the base domain test cases for unique ids and
      lifecycle operations against storage pools and networks since
      they all follow the same basic rules.
      
      * scripts/storage/0*.t, scripts/networks/0*.t: Checks for basic
        lifecycle operations and UUID/name uniqueness
      * lib/Sys/Virt/TCK/NetworkBuilder.pm: Add uuid method
      * lib/Sys/Virt/TCK/StoragePoolBuilder.pm: Add uuid  + perms methods
      * lib/Sys/Virt/TCK.pm: Add ok_network, create_empty_dir and
         generic_network methods. Blow away 'tck' networks in setup
      1b9b8b84
  19. 06 May, 2010 1 commit
    • Eric Blake's avatar
      block devices: allow specification of size for safety · 41d98ba1
      Eric Blake authored
      I was getting failures of domain/103-blockdev-save-restore.t when
      connecting as qemu:///session, since my uid could stat /dev/sdb but
      not open it.  That test now skips for unprivileged users, as well as
      adds a layer of sanity checking against expected size to avoid
      trashing the wrong device.
      
      * conf/default.cfg (host_block_devices): Document optional size.
      * lib/Sys/Virt/TCK.pm (get_host_block_device): If optional size is
      supplied, skip a device that does not match.  Also, avoid devices
      that can't be opened.
      41d98ba1
  20. 16 Apr, 2010 1 commit
    • Daniel P. Berrange's avatar
      Add testing for CDROM media change / eject · 7ec7fc29
      Daniel P. Berrange authored
      This tests the 3 main operations in removeable media
      
       - Eject existing media
       - Insert new media
       - Change existing media (eject followed by insert)
      
      * lib/Sys/Virt/TCK.pm: Allow a specific ostype to be requested
        when getting a guest config
      * scripts/domain/207-disk-media-change.t: Test media change,
        eject, and re-insert
      7ec7fc29
  21. 15 Apr, 2010 1 commit
    • Eric Blake's avatar
      maint: add copyright notices · 34ad6249
      Eric Blake authored
      The only non-trivial file (>15 lines, and not a simple listing
      of other file names) that remains without a copyright notice
      is the README.
      
      * Build.PL: Add copyright.
      * docs/intro.pod: Likewise.
      * lib/Sys/Virt/TCK.pm: Likewise.
      * lib/Sys/Virt/TCK/Capabilities.pm: Likewise.
      * lib/Sys/Virt/TCK/DomainBuilder.pm: Likewise.
      * lib/Sys/Virt/TCK/NetworkBuilder.pm: Likewise.
      * lib/Sys/Virt/TCK/StoragePoolBuilder.pm: Likewise.
      * lib/Sys/Virt/TCK/StorageVolBuilder.pm: Likewise.
      * lib/Sys/Virt/TCK/TAP/XMLFormatter.pm: Likewise.
      * lib/Sys/Virt/TCK/TAP/XMLFormatterSession.pm: Likewise.
      * t/050-capabilities.t: Likewise.
      * t/070-domain-builder.t: Likewise.
      * t/080-network-builder.t: Likewise.
      * t/090-storage-pool-builder.t: Likewise.
      * t/100-storage-vol-builder.t: Likewise.
      34ad6249
  22. 04 Mar, 2010 1 commit
    • Daniel P. Berrange's avatar
      Add TCK script for verifying disk based storage pools · 3772ac13
      Daniel P. Berrange authored
      This adds a reasonably comprehensive test script for working with
      disk based storage pools. It checks
      
       - Prevent re-formatting an existing partition table (currently
         missing this check in libvirt)
       - Formatting of a partiton table
       - Wiping a partition table (currently missing in libvirt)
       - Creating multiple storage volumes
       - Deleting storage volumes
      
      * conf/default.cfg: add config entry for specifying host block
        devices that a test script can use
      * lib/Sys/Virt/TCK.pm: Add API to get a host block device
      * lib/Sys/Virt/TCK/StoragePoolBuilder.pm: Fix typo in device
        XML formatting. Allow pool source format to be specified
      * scripts/storage/110-disk-pool.t: Test which creates a storage
        pool, creates some volumes, then deletes it all again.
      3772ac13
  23. 03 Mar, 2010 2 commits
    • Daniel P. Berrange's avatar
      Add TCK script for host PCI device hotplug/unplug · 4b686a39
      Daniel P. Berrange authored
      This adds support for testing host PCI device hotplug/unplug in
      libvirt drivers. This requires that the host have a usable
      IOMMU & hardware virt, and that the device in question can be
      reset safely.
      
      Since the TCK can't assume there are any host PCI devices that
      can be safely messed around with, the person running the test
      suite must first list one or more devices in the config file.
      If no devices are listed, the test will automatically skip
      all parts, rather than failing.
      
      * conf/default.cfg: Config entry to specify PCI devices that the
        TCK can mess around with
      * lib/Sys/Virt/TCK.pm: API for getting a host PCI device from
        the config
      * scripts/domain/250-pci-host-hotplug.t: Test case for PCI
        device hotplug/unplug.
      4b686a39
    • Daniel P. Berrange's avatar
      Add TCK script for host USB device hotplug/unplug · 8fd1a772
      Daniel P. Berrange authored
      This adds support for testing host USB device hotplug/unplug in
      libvirt drivers. This currently fails in all known libvirt
      drivers :-)  The QEMU driver only support the hotplug action,
      not unplug, hence the failure.
      
      Since the TCK can't assume there are any host USB devices that
      can be safely messed around with, the person running the test
      suite must first list one or more devices in the config file.
      If no devices are listed, the test will automatically skip
      all parts, rather than failing.
      
      * conf/default.cfg: Config entry to specify USB devices that the
        TCK can mess around with
      * lib/Sys/Virt/TCK.pm: API for getting a host USB device from
        the config
      * scripts/domain/240-usb-host-hotplug.t: Test case for USB
        device hotplug/unplug.
      8fd1a772
  24. 17 Aug, 2009 3 commits
  25. 31 Jul, 2009 1 commit
    • Daniel P. Berrange's avatar
      Don't fail hard for features declared not supported by a driver · 85ba9f2d
      Daniel P. Berrange authored
      * lib/Sys/Virt/TCK.pm: Add 'err_not_implemented' as convenient
        method to check if a error code indicates an unsupported
        feature
      * scripts/domain/100-transient-save-restore.t,
        scripts/domain/101-persistent-save-restore.t: Skip tests
        if hypervisor returns 'not supported' error code.
      85ba9f2d