deleted file mode 100644
@@ -1,28 +0,0 @@
-From ed7f83a6be18b659899fb3d60a04b91bf5abae77 Mon Sep 17 00:00:00 2001
-From: Tudor Florea <tudor.florea@enea.com>
-Date: Wed, 28 May 2014 18:59:54 +0200
-Subject: [PATCH] ethtool: use serial-tests config needed by ptest.
-
-ptest needs buildtest-TESTS and runtest-TESTS targets.
-serial-tests is required to generate those targets.
-
-Signed-off-by: Tudor Florea <tudor.florea@enea.com>
-Upstream-Status: Inappropriate
-(default automake behavior incompatible with ptest)
----
- configure.ac | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index 0289eb7..30261ee 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -3,7 +3,7 @@ AC_INIT(ethtool, 7.2, netdev@vger.kernel.org)
- AC_PREREQ(2.52)
- AC_CONFIG_MACRO_DIR([m4])
- AC_CONFIG_SRCDIR([ethtool.c])
--AM_INIT_AUTOMAKE([gnu subdir-objects])
-+AM_INIT_AUTOMAKE([gnu subdir-objects serial-tests])
- AC_CONFIG_HEADERS([ethtool-config.h])
-
- AM_MAINTAINER_MODE
@@ -1,2 +1,12 @@
#!/bin/sh
-make -k runtest-TESTS
+
+cd "$(dirname "$0")" || exit 1
+
+for t in test-cmdline test-features; do
+ [ -x "./$t" ] || continue
+ if "./$t"; then
+ echo "PASS: $t"
+ else
+ echo "FAIL: $t"
+ fi
+done
@@ -8,7 +8,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
SRC_URI = "${KERNELORG_MIRROR}/software/network/ethtool/ethtool-${PV}.tar.gz \
file://run-ptest \
- file://avoid_parallel_tests.patch \
"
SRC_URI[sha256sum] = "b2f2f1e94c3b6e35715d969185a0208d411586d88f49ccbad740063e51720f94"
@@ -17,7 +16,7 @@ UPSTREAM_CHECK_URI = "https://www.kernel.org/pub/software/network/ethtool/"
inherit autotools ptest bash-completion pkgconfig
-RDEPENDS:${PN}-ptest += "make bash"
+RDEPENDS:${PN}-ptest += "bash"
PACKAGECONFIG ?= "netlink pretty-dump"
PACKAGECONFIG[netlink] = "--enable-netlink,--disable-netlink,libmnl,"
@@ -26,15 +25,14 @@ PACKAGECONFIG[pretty-dump] = "--enable-pretty-dump,--disable-pretty-dump"
FILES:${PN} += "${datadir}/metainfo/org.kernel.software.network.ethtool.metainfo.xml"
do_compile_ptest() {
- oe_runmake buildtest-TESTS
+ # Build the test programs without running them
+ oe_runmake check TESTS=
}
do_install_ptest () {
- cp ${B}/Makefile ${D}${PTEST_PATH}
install ${B}/test-cmdline ${D}${PTEST_PATH}
if ${@bb.utils.contains('PACKAGECONFIG', 'netlink', 'false', 'true', d)}; then
install ${B}/test-features ${D}${PTEST_PATH}
fi
install ${B}/ethtool ${D}${PTEST_PATH}/ethtool
- sed -i 's/^Makefile/_Makefile/' ${D}${PTEST_PATH}/Makefile
}
Drop avoid_parallel_tests.patch and run tests directly from run-ptest instead of using Automake test targets. tested core-image-ptest-ethtool on qemux86-64 (glibc and musl), qemuarm64 and qemuriscv64. Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech> --- .../ethtool/avoid_parallel_tests.patch | 28 ------------------- .../ethtool/ethtool/run-ptest | 12 +++++++- meta/recipes-extended/ethtool/ethtool_7.2.bb | 8 ++---- 3 files changed, 14 insertions(+), 34 deletions(-) delete mode 100644 meta/recipes-extended/ethtool/ethtool/avoid_parallel_tests.patch