]> git.99rst.org Git - openwrt-packages.git/commit
tcpreplay: fix CI tests for the QEMU runtime
authorAlexandru Ardelean <redacted>
Thu, 20 Aug 2026 18:01:43 +0000 (21:01 +0300)
committerAlexandru Ardelean <redacted>
Mon, 24 Aug 2026 17:05:46 +0000 (20:05 +0300)
commit89f358cf36f4b45a0ed5d1411184a5de8be936c6
tree3872017f62a6d531090d2084cdae8afa81a673d3
parent6a33191fa01f847dbe63252883f9358b42cb5262
tcpreplay: fix CI tests for the QEMU runtime

The generic per-executable version probe and the old test.sh both invoke
tcpreplay --version. Under the QEMU test runtime tcpreplay and
tcpreplay-edit abort at startup on the interface link probe
("eth0: SIOCETHTOOL(ETHTOOL_GLINK) ioctl failed: Not a tty") before
autoopts can print the version, which fails the tcpreplay-all test and
warns on the standalone tcpreplay/tcpreplay-edit packages.

Add a test-version.sh that disables the flaky generic probe and asserts
each tool's version without needing an interface, and rewrite test.sh to
exercise the file-processing core (tcpcapinfo dissect, tcprewrite edit,
tcpprep cache) on a small synthesized capture instead of shelling out to
--version, which the CI infrastructure already covers.

Signed-off-by: Alexandru Ardelean <redacted>
net/tcpreplay/test-version.sh [new file with mode: 0755]
net/tcpreplay/test.sh [changed mode: 0644->0755]
git clone https://git.99rst.org/PROJECT