]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virusb test data: add devpath files for port addressing
authorMaximilian Martin <maximilian_martin@gmx.de>
Mon, 18 Aug 2025 14:34:12 +0000 (16:34 +0200)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 11 Feb 2026 18:05:36 +0000 (18:05 +0000)
This patch adds devpath files to the virusb test data.
These files are mockups for the USB sysfs files that
contain the port of a USB device in dotted notation.
They are used for testing of USB bus/port matching.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Maximilian Martin <maximilian_martin@gmx.de>
15 files changed:
tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3.1/devpath [new file with mode: 0644]
tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3.3/devpath [new file with mode: 0644]
tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3/devpath [new file with mode: 0644]
tests/virusbtestdata/sys_bus_usb/devices/1-1.5.4/devpath [new file with mode: 0644]
tests/virusbtestdata/sys_bus_usb/devices/1-1.5.5/devpath [new file with mode: 0644]
tests/virusbtestdata/sys_bus_usb/devices/1-1.5.6/devpath [new file with mode: 0644]
tests/virusbtestdata/sys_bus_usb/devices/1-1.5/devpath [new file with mode: 0644]
tests/virusbtestdata/sys_bus_usb/devices/1-1.6/devpath [new file with mode: 0644]
tests/virusbtestdata/sys_bus_usb/devices/1-1/devpath [new file with mode: 0644]
tests/virusbtestdata/sys_bus_usb/devices/2-1.2/devpath [new file with mode: 0644]
tests/virusbtestdata/sys_bus_usb/devices/2-1/devpath [new file with mode: 0644]
tests/virusbtestdata/sys_bus_usb/devices/usb1/devpath [new file with mode: 0644]
tests/virusbtestdata/sys_bus_usb/devices/usb2/devpath [new file with mode: 0644]
tests/virusbtestdata/sys_bus_usb/devices/usb3/devpath [new file with mode: 0644]
tests/virusbtestdata/sys_bus_usb/devices/usb4/devpath [new file with mode: 0644]

diff --git a/tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3.1/devpath b/tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3.1/devpath
new file mode 100644 (file)
index 0000000..02a7fbe
--- /dev/null
@@ -0,0 +1 @@
+1.5.3.1
diff --git a/tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3.3/devpath b/tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3.3/devpath
new file mode 100644 (file)
index 0000000..23ca863
--- /dev/null
@@ -0,0 +1 @@
+1.5.3.3
diff --git a/tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3/devpath b/tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3/devpath
new file mode 100644 (file)
index 0000000..8af85be
--- /dev/null
@@ -0,0 +1 @@
+1.5.3
diff --git a/tests/virusbtestdata/sys_bus_usb/devices/1-1.5.4/devpath b/tests/virusbtestdata/sys_bus_usb/devices/1-1.5.4/devpath
new file mode 100644 (file)
index 0000000..94fe62c
--- /dev/null
@@ -0,0 +1 @@
+1.5.4
diff --git a/tests/virusbtestdata/sys_bus_usb/devices/1-1.5.5/devpath b/tests/virusbtestdata/sys_bus_usb/devices/1-1.5.5/devpath
new file mode 100644 (file)
index 0000000..9075be4
--- /dev/null
@@ -0,0 +1 @@
+1.5.5
diff --git a/tests/virusbtestdata/sys_bus_usb/devices/1-1.5.6/devpath b/tests/virusbtestdata/sys_bus_usb/devices/1-1.5.6/devpath
new file mode 100644 (file)
index 0000000..eac1e0a
--- /dev/null
@@ -0,0 +1 @@
+1.5.6
diff --git a/tests/virusbtestdata/sys_bus_usb/devices/1-1.5/devpath b/tests/virusbtestdata/sys_bus_usb/devices/1-1.5/devpath
new file mode 100644 (file)
index 0000000..c239c60
--- /dev/null
@@ -0,0 +1 @@
+1.5
diff --git a/tests/virusbtestdata/sys_bus_usb/devices/1-1.6/devpath b/tests/virusbtestdata/sys_bus_usb/devices/1-1.6/devpath
new file mode 100644 (file)
index 0000000..810ee4e
--- /dev/null
@@ -0,0 +1 @@
+1.6
diff --git a/tests/virusbtestdata/sys_bus_usb/devices/1-1/devpath b/tests/virusbtestdata/sys_bus_usb/devices/1-1/devpath
new file mode 100644 (file)
index 0000000..d00491f
--- /dev/null
@@ -0,0 +1 @@
+1
diff --git a/tests/virusbtestdata/sys_bus_usb/devices/2-1.2/devpath b/tests/virusbtestdata/sys_bus_usb/devices/2-1.2/devpath
new file mode 100644 (file)
index 0000000..5625e59
--- /dev/null
@@ -0,0 +1 @@
+1.2
diff --git a/tests/virusbtestdata/sys_bus_usb/devices/2-1/devpath b/tests/virusbtestdata/sys_bus_usb/devices/2-1/devpath
new file mode 100644 (file)
index 0000000..d00491f
--- /dev/null
@@ -0,0 +1 @@
+1
diff --git a/tests/virusbtestdata/sys_bus_usb/devices/usb1/devpath b/tests/virusbtestdata/sys_bus_usb/devices/usb1/devpath
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/tests/virusbtestdata/sys_bus_usb/devices/usb2/devpath b/tests/virusbtestdata/sys_bus_usb/devices/usb2/devpath
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/tests/virusbtestdata/sys_bus_usb/devices/usb3/devpath b/tests/virusbtestdata/sys_bus_usb/devices/usb3/devpath
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/tests/virusbtestdata/sys_bus_usb/devices/usb4/devpath b/tests/virusbtestdata/sys_bus_usb/devices/usb4/devpath
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0