[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 12/13] tests/avocado: Add igb test
From: |
Akihiko Odaki |
Subject: |
[PATCH v2 12/13] tests/avocado: Add igb test |
Date: |
Sat, 14 Jan 2023 13:10:03 +0900 |
This automates ethtool tests for igb registers, interrupts, etc.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
MAINTAINERS | 1 +
.../org.centos/stream/8/x86_64/test-avocado | 1 +
tests/avocado/igb.py | 38 +++++++++++++++++++
3 files changed, 40 insertions(+)
create mode 100644 tests/avocado/igb.py
diff --git a/MAINTAINERS b/MAINTAINERS
index 2599cd673c..5409f2d625 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -2222,6 +2222,7 @@ igb
M: Akihiko Odaki <akihiko.odaki@daynix.com>
S: Maintained
F: hw/net/igb*
+F: tests/avocado/igb.py
F: tests/qtest/igb-test.c
F: tests/qtest/libqos/igb.c
diff --git a/scripts/ci/org.centos/stream/8/x86_64/test-avocado
b/scripts/ci/org.centos/stream/8/x86_64/test-avocado
index 7aeecbcfb8..7e07dbcc89 100755
--- a/scripts/ci/org.centos/stream/8/x86_64/test-avocado
+++ b/scripts/ci/org.centos/stream/8/x86_64/test-avocado
@@ -37,6 +37,7 @@ make get-vm-images
tests/avocado/cpu_queries.py:QueryCPUModelExpansion.test \
tests/avocado/empty_cpu_model.py:EmptyCPUModel.test \
tests/avocado/hotplug_cpu.py:HotPlugCPU.test \
+ tests/avocado/igb.py:IGB.test \
tests/avocado/info_usernet.py:InfoUsernet.test_hostfwd \
tests/avocado/intel_iommu.py:IntelIOMMU.test_intel_iommu \
tests/avocado/intel_iommu.py:IntelIOMMU.test_intel_iommu_pt \
diff --git a/tests/avocado/igb.py b/tests/avocado/igb.py
new file mode 100644
index 0000000000..abf5dfa07f
--- /dev/null
+++ b/tests/avocado/igb.py
@@ -0,0 +1,38 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+# ethtool tests for igb registers, interrupts, etc
+
+from avocado_qemu import LinuxTest
+
+class IGB(LinuxTest):
+ """
+ :avocado: tags=accel:kvm
+ :avocado: tags=arch:x86_64
+ :avocado: tags=distro:fedora
+ :avocado: tags=distro_version:31
+ :avocado: tags=machine:q35
+ """
+
+ timeout = 180
+
+ def test(self):
+ self.require_accelerator('kvm')
+ kernel_url = self.distro.pxeboot_url + 'vmlinuz'
+ kernel_hash = '5b6f6876e1b5bda314f93893271da0d5777b1f3c'
+ kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash)
+ initrd_url = self.distro.pxeboot_url + 'initrd.img'
+ initrd_hash = 'dd0340a1b39bd28f88532babd4581c67649ec5b1'
+ initrd_path = self.fetch_asset(initrd_url, asset_hash=initrd_hash)
+
+ # Ideally we want to test MSI as well, but it is blocked by a bug
+ # fixed with:
+ #
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=28e96556baca7056d11d9fb3cdd0aba4483e00d8
+ kernel_params = self.distro.default_kernel_params + ' pci=nomsi'
+
+ self.vm.add_args('-kernel', kernel_path,
+ '-initrd', initrd_path,
+ '-append', kernel_params,
+ '-accel', 'kvm',
+ '-device', 'igb')
+ self.launch_and_wait()
+ self.ssh_command('dnf -y install ethtool')
+ self.ssh_command('ethtool -t eth1 offline')
--
2.39.0
- [PATCH v2 02/13] pcie: Introduce pcie_sriov_num_vfs, (continued)
- [PATCH v2 02/13] pcie: Introduce pcie_sriov_num_vfs, Akihiko Odaki, 2023/01/13
- [PATCH v2 03/13] e1000: Split header files, Akihiko Odaki, 2023/01/13
- [PATCH v2 04/13] igb: Copy e1000e code, Akihiko Odaki, 2023/01/13
- [PATCH v2 05/13] igb: Rename identifiers, Akihiko Odaki, 2023/01/13
- [PATCH v2 06/13] igb: Build igb, Akihiko Odaki, 2023/01/13
- [PATCH v2 07/13] igb: Transform to 82576 implementation, Akihiko Odaki, 2023/01/13
- [PATCH v2 08/13] tests/qtest/e1000e-test: Fabricate ethernet header, Akihiko Odaki, 2023/01/13
- [PATCH v2 11/13] tests/qtest/libqos/igb: Transform to igb tests, Akihiko Odaki, 2023/01/13
- [PATCH v2 09/13] tests/qtest/libqos/e1000e: Export macreg functions, Akihiko Odaki, 2023/01/13
- [PATCH v2 10/13] tests/qtest/libqos/igb: Copy e1000e code, Akihiko Odaki, 2023/01/13
- [PATCH v2 12/13] tests/avocado: Add igb test,
Akihiko Odaki <=
- [PATCH v2 13/13] docs/system/devices/igb: Add igb documentation, Akihiko Odaki, 2023/01/13
- Re: [PATCH v2 00/13] Introduce igb, Jason Wang, 2023/01/16
- Re: [PATCH v2 00/13] Introduce igb, Akihiko Odaki, 2023/01/23
- RE: [PATCH v2 00/13] Introduce igb, Sriram Yagnaraman, 2023/01/24
- RE: [PATCH v2 00/13] Introduce igb, Sriram Yagnaraman, 2023/01/26
- Re: [PATCH v2 00/13] Introduce igb, Akihiko Odaki, 2023/01/26
- RE: [PATCH v2 00/13] Introduce igb, Sriram Yagnaraman, 2023/01/28
- Re: [PATCH v2 00/13] Introduce igb, Akihiko Odaki, 2023/01/30
- RE: [PATCH v2 00/13] Introduce igb, Sriram Yagnaraman, 2023/01/31