Skip to contentSkip to conversation

support/testing: add iperf runtime test

PATCH Applied Julien Olivain 3 participants 3 messages Apr 20, 2024 – May 16, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 support/testing: add iperf runtime test

---
 DEVELOPERS                                  |  1 +
 support/testing/tests/package/test_iperf.py | 23 +++++++++++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 support/testing/tests/package/test_iperf.py
DEVELOPERS +1 -0
index 399b2931ff3..2f8bacda2d9 100644
@@ -1801,6 +1801,7 @@ F:	support/testing/tests/package/test_gzip.py
 F:	support/testing/tests/package/test_highway.py
 F:	support/testing/tests/package/test_hwloc.py
 F:	support/testing/tests/package/test_iozone.py
+F:	support/testing/tests/package/test_iperf.py
 F:	support/testing/tests/package/test_iperf3.py
 F:	support/testing/tests/package/test_iptables.py
 F:	support/testing/tests/package/test_jailhouse.py
support/testing/tests/package/test_iperf.py new file +23 -0
new file mode 100644
index 00000000000..31f04d98967
@@ -0,0 +1,23 @@
+import os
+
+import infra.basetest
+
+
+class TestIperf(infra.basetest.BRTest):
+    config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \
+        """
+        BR2_PACKAGE_IPERF=y
+        BR2_TARGET_ROOTFS_CPIO=y
+        # BR2_TARGET_ROOTFS_TAR is not set
+        """
+
+    def test_run(self):
+        cpio_file = os.path.join(self.builddir, "images", "rootfs.cpio")
+        self.emulator.boot(arch="armv5",
+                           kernel="builtin",
+                           options=["-initrd", cpio_file])
+        self.emulator.login()
+
+        self.assertRunOk("iperf --version")
+        self.assertRunOk("iperf -s -D")
+        self.assertRunOk("iperf -c 127.0.0.1 -t 3")
Signature · 6 lines
2.44.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 6 lines · On Sat, 20 Apr 2024 12:54:41 +0200 Julien Olivain <[email protected]> wrote:
---
 DEVELOPERS                                  |  1 +
 support/testing/tests/package/test_iperf.py | 23 +++++++++++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 support/testing/tests/package/test_iperf.py

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot