[PATCH 0/2] Add virusbtest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Test src/util/virusb.c.

Ján Tomko (2):
  Add tests for virUSBDeviceFind functions
  Add a test for virUSBDeviceList functions

 .gitignore                                         |   1 +
 cfg.mk                                             |   3 +-
 tests/Makefile.am                                  |  12 +
 tests/virusbtest.c                                 | 343 +++++++++++++++++++++
 .../sys_bus_usb/devices/1-1.5.3.1/devnum           |   1 +
 .../sys_bus_usb/devices/1-1.5.3.1/idProduct        |   1 +
 .../sys_bus_usb/devices/1-1.5.3.1/idVendor         |   1 +
 .../sys_bus_usb/devices/1-1.5.3.1/serial           |   1 +
 .../sys_bus_usb/devices/1-1.5.3.3/devnum           |   1 +
 .../sys_bus_usb/devices/1-1.5.3.3/idProduct        |   1 +
 .../sys_bus_usb/devices/1-1.5.3.3/idVendor         |   1 +
 .../sys_bus_usb/devices/1-1.5.3.3/serial           |   1 +
 .../sys_bus_usb/devices/1-1.5.3/devnum             |   1 +
 .../sys_bus_usb/devices/1-1.5.3/idProduct          |   1 +
 .../sys_bus_usb/devices/1-1.5.3/idVendor           |   1 +
 .../sys_bus_usb/devices/1-1.5.3/serial             |   1 +
 .../sys_bus_usb/devices/1-1.5.4/devnum             |   1 +
 .../sys_bus_usb/devices/1-1.5.4/idProduct          |   1 +
 .../sys_bus_usb/devices/1-1.5.4/idVendor           |   1 +
 .../sys_bus_usb/devices/1-1.5.4/serial             |   1 +
 .../sys_bus_usb/devices/1-1.5.5/devnum             |   1 +
 .../sys_bus_usb/devices/1-1.5.5/idProduct          |   1 +
 .../sys_bus_usb/devices/1-1.5.5/idVendor           |   1 +
 .../sys_bus_usb/devices/1-1.5.5/serial             |   1 +
 .../sys_bus_usb/devices/1-1.5.6/devnum             |   1 +
 .../sys_bus_usb/devices/1-1.5.6/idProduct          |   1 +
 .../sys_bus_usb/devices/1-1.5.6/idVendor           |   1 +
 .../sys_bus_usb/devices/1-1.5.6/serial             |   1 +
 .../sys_bus_usb/devices/1-1.5/devnum               |   1 +
 .../sys_bus_usb/devices/1-1.5/idProduct            |   1 +
 .../sys_bus_usb/devices/1-1.5/idVendor             |   1 +
 .../sys_bus_usb/devices/1-1.5/serial               |   1 +
 .../sys_bus_usb/devices/1-1.6/devnum               |   1 +
 .../sys_bus_usb/devices/1-1.6/idProduct            |   1 +
 .../sys_bus_usb/devices/1-1.6/idVendor             |   1 +
 .../sys_bus_usb/devices/1-1.6/serial               |   1 +
 .../virusbtestdata/sys_bus_usb/devices/1-1/devnum  |   1 +
 .../sys_bus_usb/devices/1-1/idProduct              |   1 +
 .../sys_bus_usb/devices/1-1/idVendor               |   1 +
 .../virusbtestdata/sys_bus_usb/devices/1-1/serial  |   1 +
 .../sys_bus_usb/devices/2-1.2/devnum               |   1 +
 .../sys_bus_usb/devices/2-1.2/idProduct            |   1 +
 .../sys_bus_usb/devices/2-1.2/idVendor             |   1 +
 .../sys_bus_usb/devices/2-1.2/serial               |   1 +
 .../virusbtestdata/sys_bus_usb/devices/2-1/devnum  |   1 +
 .../sys_bus_usb/devices/2-1/idProduct              |   1 +
 .../sys_bus_usb/devices/2-1/idVendor               |   1 +
 .../virusbtestdata/sys_bus_usb/devices/2-1/serial  |   1 +
 .../virusbtestdata/sys_bus_usb/devices/usb1/devnum |   1 +
 .../sys_bus_usb/devices/usb1/idProduct             |   1 +
 .../sys_bus_usb/devices/usb1/idVendor              |   1 +
 .../virusbtestdata/sys_bus_usb/devices/usb1/serial |   1 +
 .../virusbtestdata/sys_bus_usb/devices/usb2/devnum |   1 +
 .../sys_bus_usb/devices/usb2/idProduct             |   1 +
 .../sys_bus_usb/devices/usb2/idVendor              |   1 +
 .../virusbtestdata/sys_bus_usb/devices/usb2/serial |   1 +
 .../virusbtestdata/sys_bus_usb/devices/usb3/devnum |   1 +
 .../sys_bus_usb/devices/usb3/idProduct             |   1 +
 .../sys_bus_usb/devices/usb3/idVendor              |   1 +
 .../virusbtestdata/sys_bus_usb/devices/usb3/serial |   1 +
 .../virusbtestdata/sys_bus_usb/devices/usb4/devnum |   1 +
 .../sys_bus_usb/devices/usb4/idProduct             |   1 +
 .../sys_bus_usb/devices/usb4/idVendor              |   1 +
 .../virusbtestdata/sys_bus_usb/devices/usb4/serial |   1 +
 64 files changed, 418 insertions(+), 1 deletion(-)
 create mode 100644 tests/virusbtest.c
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3.1/devnum
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3.1/idProduct
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3.1/idVendor
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3.1/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3.3/devnum
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3.3/idProduct
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3.3/idVendor
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3.3/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3/devnum
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3/idProduct
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3/idVendor
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.4/devnum
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.4/idProduct
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.4/idVendor
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.4/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.5/devnum
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.5/idProduct
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.5/idVendor
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.5/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.6/devnum
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.6/idProduct
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.6/idVendor
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.6/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5/devnum
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5/idProduct
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5/idVendor
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.6/devnum
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.6/idProduct
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.6/idVendor
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.6/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1/devnum
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1/idProduct
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1/idVendor
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/2-1.2/devnum
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/2-1.2/idProduct
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/2-1.2/idVendor
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/2-1.2/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/2-1/devnum
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/2-1/idProduct
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/2-1/idVendor
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/2-1/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/usb1/devnum
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/usb1/idProduct
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/usb1/idVendor
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/usb1/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/usb2/devnum
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/usb2/idProduct
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/usb2/idVendor
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/usb2/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/usb3/devnum
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/usb3/idProduct
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/usb3/idVendor
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/usb3/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/usb4/devnum
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/usb4/idProduct
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/usb4/idVendor
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/usb4/serial

-- 
1.8.3.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]