All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/16] m4/opkg/ethtool/attr/libgpg-error: Add missing bash ptest dependency
@ 2023-03-11  0:27 Richard Purdie
  2023-03-11  0:27 ` [PATCH 02/16] openssl: Add missing ptest dependency on openssl-bin Richard Purdie
                   ` (14 more replies)
  0 siblings, 15 replies; 18+ messages in thread
From: Richard Purdie @ 2023-03-11  0:27 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-devtools/m4/m4-1.4.19.inc                 | 2 +-
 meta/recipes-devtools/opkg/opkg_0.6.1.bb               | 2 +-
 meta/recipes-extended/ethtool/ethtool_6.2.bb           | 2 +-
 meta/recipes-support/attr/attr.inc                     | 1 +
 meta/recipes-support/libgpg-error/libgpg-error_1.46.bb | 2 +-
 5 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-devtools/m4/m4-1.4.19.inc b/meta/recipes-devtools/m4/m4-1.4.19.inc
index c098a4077ef..fd3efa54692 100644
--- a/meta/recipes-devtools/m4/m4-1.4.19.inc
+++ b/meta/recipes-devtools/m4/m4-1.4.19.inc
@@ -53,7 +53,7 @@ do_install_ptest() {
 }
 
 
-RDEPENDS:${PN}-ptest += "make coreutils diffutils"
+RDEPENDS:${PN}-ptest += "make coreutils diffutils bash"
 RDEPENDS:${PN}-ptest:append:libc-glibc = "\
      locale-base-fr-fr \
      locale-base-fr-fr.iso-8859-1 \
diff --git a/meta/recipes-devtools/opkg/opkg_0.6.1.bb b/meta/recipes-devtools/opkg/opkg_0.6.1.bb
index c95a40d2689..c3f4a7dd575 100644
--- a/meta/recipes-devtools/opkg/opkg_0.6.1.bb
+++ b/meta/recipes-devtools/opkg/opkg_0.6.1.bb
@@ -65,7 +65,7 @@ do_install_ptest () {
 RDEPENDS:${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-arch-config libarchive"
 RDEPENDS:${PN}:class-native = ""
 RDEPENDS:${PN}:class-nativesdk = ""
-RDEPENDS:${PN}-ptest += "make binutils python3-core python3-compression"
+RDEPENDS:${PN}-ptest += "make binutils python3-core python3-compression bash"
 RREPLACES:${PN} = "opkg-nogpg opkg-collateral"
 RCONFLICTS:${PN} = "opkg-collateral"
 RPROVIDES:${PN} = "opkg-collateral"
diff --git a/meta/recipes-extended/ethtool/ethtool_6.2.bb b/meta/recipes-extended/ethtool/ethtool_6.2.bb
index 881e6388518..aea03b729d3 100644
--- a/meta/recipes-extended/ethtool/ethtool_6.2.bb
+++ b/meta/recipes-extended/ethtool/ethtool_6.2.bb
@@ -17,7 +17,7 @@ UPSTREAM_CHECK_URI = "https://www.kernel.org/pub/software/network/ethtool/"
 
 inherit autotools ptest bash-completion pkgconfig
 
-RDEPENDS:${PN}-ptest += "make"
+RDEPENDS:${PN}-ptest += "make bash"
 
 PACKAGECONFIG ?= "netlink"
 PACKAGECONFIG[netlink] = "--enable-netlink,--disable-netlink,libmnl,"
diff --git a/meta/recipes-support/attr/attr.inc b/meta/recipes-support/attr/attr.inc
index a4e38f2b199..53d9dccb27e 100644
--- a/meta/recipes-support/attr/attr.inc
+++ b/meta/recipes-support/attr/attr.inc
@@ -49,6 +49,7 @@ do_install_ptest() {
 }
 
 RDEPENDS:${PN}-ptest = "attr \
+                        bash \
                         coreutils \
                         perl-module-filehandle \
                         perl-module-getopt-std \
diff --git a/meta/recipes-support/libgpg-error/libgpg-error_1.46.bb b/meta/recipes-support/libgpg-error/libgpg-error_1.46.bb
index 580fe208d47..e0f2d86303e 100644
--- a/meta/recipes-support/libgpg-error/libgpg-error_1.46.bb
+++ b/meta/recipes-support/libgpg-error/libgpg-error_1.46.bb
@@ -26,7 +26,7 @@ BINCONFIG = "${bindir}/gpg-error-config"
 
 inherit autotools binconfig-disabled pkgconfig gettext multilib_header multilib_script ptest
 
-RDEPENDS:${PN}-ptest:append = " make"
+RDEPENDS:${PN}-ptest:append = " make bash"
 
 MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/gpgrt-config"
 
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 02/16] openssl: Add missing ptest dependency on openssl-bin
  2023-03-11  0:27 [PATCH 01/16] m4/opkg/ethtool/attr/libgpg-error: Add missing bash ptest dependency Richard Purdie
@ 2023-03-11  0:27 ` Richard Purdie
  2023-03-11  0:27 ` [PATCH 03/16] valgrind: Add missing utf-32 gconv dependency for ptests Richard Purdie
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Richard Purdie @ 2023-03-11  0:27 UTC (permalink / raw)
  To: openembedded-core

One of the openssl ptests needs the openssl binary so fails
on a minimal image without this. Add the missing dependency.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-connectivity/openssh/openssh_9.2p1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-connectivity/openssh/openssh_9.2p1.bb b/meta/recipes-connectivity/openssh/openssh_9.2p1.bb
index e6cf2ff2d6b..4666237d686 100644
--- a/meta/recipes-connectivity/openssh/openssh_9.2p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_9.2p1.bb
@@ -158,7 +158,7 @@ FILES:${PN}-keygen = "${bindir}/ssh-keygen"
 RDEPENDS:${PN} += "${PN}-scp ${PN}-ssh ${PN}-sshd ${PN}-keygen ${PN}-sftp-server"
 RDEPENDS:${PN}-sshd += "${PN}-keygen ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-keyinit pam-plugin-loginuid', '', d)}"
 # gdb would make attach-ptrace test pass rather than skip but not worth the build dependencies
-RDEPENDS:${PN}-ptest += "${PN}-sftp ${PN}-misc ${PN}-sftp-server make sed sudo coreutils"
+RDEPENDS:${PN}-ptest += "${PN}-sftp ${PN}-misc ${PN}-sftp-server make sed sudo coreutils openssl-bin"
 
 RPROVIDES:${PN}-ssh = "ssh"
 RPROVIDES:${PN}-sshd = "sshd"
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 03/16] valgrind: Add missing utf-32 gconv dependency for ptests
  2023-03-11  0:27 [PATCH 01/16] m4/opkg/ethtool/attr/libgpg-error: Add missing bash ptest dependency Richard Purdie
  2023-03-11  0:27 ` [PATCH 02/16] openssl: Add missing ptest dependency on openssl-bin Richard Purdie
@ 2023-03-11  0:27 ` Richard Purdie
  2023-03-11  0:27 ` [PATCH 04/16] perl: Add missing procps-ps " Richard Purdie
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Richard Purdie @ 2023-03-11  0:27 UTC (permalink / raw)
  To: openembedded-core

Some of the ptests fail in a minimal image. Add the missing gconv
dependency needed to allow those tests to pass.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-devtools/valgrind/valgrind_3.20.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/valgrind/valgrind_3.20.0.bb b/meta/recipes-devtools/valgrind/valgrind_3.20.0.bb
index 701dbf38332..07e50426e44 100644
--- a/meta/recipes-devtools/valgrind/valgrind_3.20.0.bb
+++ b/meta/recipes-devtools/valgrind/valgrind_3.20.0.bb
@@ -133,7 +133,7 @@ RDEPENDS:${PN}-ptest += " bash coreutils curl file \
    perl-module-carp perl-module-symbol \
    procps sed ${PN}-dbg ${PN}-src ${TCLIBC}-src gcc-runtime-dbg \
    util-linux-taskset"
-RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-utils"
+RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-utils glibc-gconv-utf-32"
 
 # One of the tests contains a bogus interpreter path on purpose.
 # Skip file dependency check
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 04/16] perl: Add missing procps-ps dependency for ptests
  2023-03-11  0:27 [PATCH 01/16] m4/opkg/ethtool/attr/libgpg-error: Add missing bash ptest dependency Richard Purdie
  2023-03-11  0:27 ` [PATCH 02/16] openssl: Add missing ptest dependency on openssl-bin Richard Purdie
  2023-03-11  0:27 ` [PATCH 03/16] valgrind: Add missing utf-32 gconv dependency for ptests Richard Purdie
@ 2023-03-11  0:27 ` Richard Purdie
  2023-03-11  0:27 ` [PATCH 05/16] acl/attr: ptest fixes and improvements Richard Purdie
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Richard Purdie @ 2023-03-11  0:27 UTC (permalink / raw)
  To: openembedded-core

Some of the ptests fail in a minimal image as they depend on options
to ps which busybox doesn't support. Add the full utility.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-devtools/perl/perl-ptest.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/perl/perl-ptest.inc b/meta/recipes-devtools/perl/perl-ptest.inc
index c233fab5453..e07355d3f54 100644
--- a/meta/recipes-devtools/perl/perl-ptest.inc
+++ b/meta/recipes-devtools/perl/perl-ptest.inc
@@ -56,7 +56,7 @@ python populate_packages:prepend() {
             '${PN}-ptest%s', '%s', recursive=True, match_path=True)
 }
 
-RDEPENDS:${PN}-ptest += "${PN}-modules ${PN}-doc sed"
+RDEPENDS:${PN}-ptest += "${PN}-modules ${PN}-doc sed procps-ps"
 
 # The perl-ptest package contains Perl internal modules and generating file
 # dependencies for it causes problems.
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 05/16] acl/attr: ptest fixes and improvements
  2023-03-11  0:27 [PATCH 01/16] m4/opkg/ethtool/attr/libgpg-error: Add missing bash ptest dependency Richard Purdie
                   ` (2 preceding siblings ...)
  2023-03-11  0:27 ` [PATCH 04/16] perl: Add missing procps-ps " Richard Purdie
@ 2023-03-11  0:27 ` Richard Purdie
  2023-03-11  0:27 ` [PATCH 06/16] m4: Add missing ptest dependency Richard Purdie
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Richard Purdie @ 2023-03-11  0:27 UTC (permalink / raw)
  To: openembedded-core

Add a missing perl module dependency for the ptest packages and also
improve the run-ptest script so that the error log is saved allowing
easier debugging if this fails in future.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-support/attr/acl/run-ptest  | 6 ++++++
 meta/recipes-support/attr/acl_2.3.1.bb   | 1 +
 meta/recipes-support/attr/attr.inc       | 1 +
 meta/recipes-support/attr/attr/run-ptest | 7 +++++++
 4 files changed, 15 insertions(+)

diff --git a/meta/recipes-support/attr/acl/run-ptest b/meta/recipes-support/attr/acl/run-ptest
index 43128233654..3af75c84fea 100644
--- a/meta/recipes-support/attr/acl/run-ptest
+++ b/meta/recipes-support/attr/acl/run-ptest
@@ -7,4 +7,10 @@
 mkdir -p /tmp/acl-ptest/test
 cp test/test.* /tmp/acl-ptest/test
 
+set +e
 make test-suite.log
+exitcode=$?
+if [ $exitcode -ne 0 -a -e test-suite.log ]; then
+    cat test-suite.log
+fi
+exit $exitcode
diff --git a/meta/recipes-support/attr/acl_2.3.1.bb b/meta/recipes-support/attr/acl_2.3.1.bb
index 5fb8f9ae355..9cb19ed72f5 100644
--- a/meta/recipes-support/attr/acl_2.3.1.bb
+++ b/meta/recipes-support/attr/acl_2.3.1.bb
@@ -65,6 +65,7 @@ RDEPENDS:${PN}-ptest = "acl \
                         bash \
                         coreutils \
                         perl \
+                        perl-module-constant \
                         perl-module-filehandle \
                         perl-module-getopt-std \
                         perl-module-posix \
diff --git a/meta/recipes-support/attr/attr.inc b/meta/recipes-support/attr/attr.inc
index 53d9dccb27e..ab62563690b 100644
--- a/meta/recipes-support/attr/attr.inc
+++ b/meta/recipes-support/attr/attr.inc
@@ -51,6 +51,7 @@ do_install_ptest() {
 RDEPENDS:${PN}-ptest = "attr \
                         bash \
                         coreutils \
+                        perl-module-constant \
                         perl-module-filehandle \
                         perl-module-getopt-std \
                         perl-module-posix \
diff --git a/meta/recipes-support/attr/attr/run-ptest b/meta/recipes-support/attr/attr/run-ptest
index f64244f2393..3e7a3a17a04 100644
--- a/meta/recipes-support/attr/attr/run-ptest
+++ b/meta/recipes-support/attr/attr/run-ptest
@@ -1,3 +1,10 @@
 #!/bin/sh
 
+set +e
 make test-suite.log
+exitcode=$?
+if [ $exitcode -ne 0 -a -e test-suite.log ]; then
+    cat test-suite.log
+fi
+exit $exitcode
+
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 06/16] m4: Add missing ptest dependency
  2023-03-11  0:27 [PATCH 01/16] m4/opkg/ethtool/attr/libgpg-error: Add missing bash ptest dependency Richard Purdie
                   ` (3 preceding siblings ...)
  2023-03-11  0:27 ` [PATCH 05/16] acl/attr: ptest fixes and improvements Richard Purdie
@ 2023-03-11  0:27 ` Richard Purdie
  2023-03-11  0:27 ` [PATCH 07/16] libmodule-build-perl: Fix ptest dependencies Richard Purdie
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Richard Purdie @ 2023-03-11  0:27 UTC (permalink / raw)
  To: openembedded-core

Some of the ptests fail in a minimal image. Add the missing gconv
dependency needed to allow those tests to pass.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-devtools/m4/m4-1.4.19.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/m4/m4-1.4.19.inc b/meta/recipes-devtools/m4/m4-1.4.19.inc
index fd3efa54692..3b4303b7fd8 100644
--- a/meta/recipes-devtools/m4/m4-1.4.19.inc
+++ b/meta/recipes-devtools/m4/m4-1.4.19.inc
@@ -57,6 +57,7 @@ RDEPENDS:${PN}-ptest += "make coreutils diffutils bash"
 RDEPENDS:${PN}-ptest:append:libc-glibc = "\
      locale-base-fr-fr \
      locale-base-fr-fr.iso-8859-1 \
+     glibc-gconv-iso8859-1 \
 "
 
 INSANE_SKIP:${PN}-ptest += "ldflags"
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 07/16] libmodule-build-perl: Fix ptest dependencies
  2023-03-11  0:27 [PATCH 01/16] m4/opkg/ethtool/attr/libgpg-error: Add missing bash ptest dependency Richard Purdie
                   ` (4 preceding siblings ...)
  2023-03-11  0:27 ` [PATCH 06/16] m4: Add missing ptest dependency Richard Purdie
@ 2023-03-11  0:27 ` Richard Purdie
  2023-03-11  0:27 ` [PATCH 08/16] bc: Fix ptest test output naming Richard Purdie
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Richard Purdie @ 2023-03-11  0:27 UTC (permalink / raw)
  To: openembedded-core

Some of the ptests fail in a minimal image. Add the missing perl
module dependencies.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 .../recipes-devtools/perl/libmodule-build-perl_0.4232.bb | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/meta/recipes-devtools/perl/libmodule-build-perl_0.4232.bb b/meta/recipes-devtools/perl/libmodule-build-perl_0.4232.bb
index 748412b414f..0ead690067b 100644
--- a/meta/recipes-devtools/perl/libmodule-build-perl_0.4232.bb
+++ b/meta/recipes-devtools/perl/libmodule-build-perl_0.4232.bb
@@ -91,12 +91,21 @@ RDEPENDS:${PN}-ptest += " \
     packagegroup-core-buildessential \
     perl-dev \
     perl-module-blib \
+    perl-module-encode-encoding \
+    perl-module-extutils-cbuilder-base \
     perl-module-extutils-command-mm \
+    perl-module-extutils-mm-unix \
     perl-module-file-temp \
     perl-module-lib \
+    perl-module-parse-cpan-meta \
     perl-module-perlio \
     perl-module-perlio-encoding \
+    perl-module-pod-simple-transcodesmart \
     perl-module-pod-text \
+    perl-module-tap-base \
+    perl-module-tap-formatter-base \
+    perl-module-tap-formatter-file \
+    perl-module-tap-formatter-session \
     perl-module-tap-harness-env \
     perl-module-tap-parser \
     perl-module-tap-parser-scheduler \
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 08/16] bc: Fix ptest test output naming
  2023-03-11  0:27 [PATCH 01/16] m4/opkg/ethtool/attr/libgpg-error: Add missing bash ptest dependency Richard Purdie
                   ` (5 preceding siblings ...)
  2023-03-11  0:27 ` [PATCH 07/16] libmodule-build-perl: Fix ptest dependencies Richard Purdie
@ 2023-03-11  0:27 ` Richard Purdie
  2023-03-11  0:27 ` [PATCH 09/16] findutils: Fix ptest dependency issue Richard Purdie
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Richard Purdie @ 2023-03-11  0:27 UTC (permalink / raw)
  To: openembedded-core

The quoting in the script was mangled leading to "0" tests being
found by our log parsing code. Fix the quoting to allow the correct
test counts to appear.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-extended/bc/bc/run-ptest | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-extended/bc/bc/run-ptest b/meta/recipes-extended/bc/bc/run-ptest
index 66a1b9d7087..ba5abe68058 100644
--- a/meta/recipes-extended/bc/bc/run-ptest
+++ b/meta/recipes-extended/bc/bc/run-ptest
@@ -2,8 +2,8 @@
 
 for TEST in *.b; do
 	if bc -l $TEST </dev/null; then
-		echo “PASS: bc/$TEST”
+		echo "PASS: bc/$TEST"
 	else
-		echo “FAIL: bc/$TEST”
+		echo "FAIL: bc/$TEST"
 	fi
 done
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 09/16] findutils: Fix ptest dependency issue
  2023-03-11  0:27 [PATCH 01/16] m4/opkg/ethtool/attr/libgpg-error: Add missing bash ptest dependency Richard Purdie
                   ` (6 preceding siblings ...)
  2023-03-11  0:27 ` [PATCH 08/16] bc: Fix ptest test output naming Richard Purdie
@ 2023-03-11  0:27 ` Richard Purdie
  2023-03-11  0:27 ` [PATCH 10/16] gawk: Fix ptest dependency Richard Purdie
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Richard Purdie @ 2023-03-11  0:27 UTC (permalink / raw)
  To: openembedded-core

The options used with 'od' don't work with our busybox config.
Add a dependency on the full utility from coreutils to fix execution
in minimal images.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-extended/findutils/findutils_4.9.0.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-extended/findutils/findutils_4.9.0.bb b/meta/recipes-extended/findutils/findutils_4.9.0.bb
index e4ce8ee4ebf..074817df27c 100644
--- a/meta/recipes-extended/findutils/findutils_4.9.0.bb
+++ b/meta/recipes-extended/findutils/findutils_4.9.0.bb
@@ -14,7 +14,8 @@ CACHED_CONFIGUREVARS += "gl_cv_func_wcwidth_works=yes"
 
 EXTRA_OECONF += "ac_cv_path_SORT=${bindir}/sort"
 
-RDEPENDS:${PN}-ptest += "bash sed grep"
+# need od from coreutils for -t option
+RDEPENDS:${PN}-ptest += "bash sed grep coreutils"
 
 do_install_ptest:class-target() {
 	mkdir -p ${D}${PTEST_PATH}/tests/
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 10/16] gawk: Fix ptest dependency
  2023-03-11  0:27 [PATCH 01/16] m4/opkg/ethtool/attr/libgpg-error: Add missing bash ptest dependency Richard Purdie
                   ` (7 preceding siblings ...)
  2023-03-11  0:27 ` [PATCH 09/16] findutils: Fix ptest dependency issue Richard Purdie
@ 2023-03-11  0:27 ` Richard Purdie
  2023-03-11  1:40   ` [OE-core] " Khem Raj
  2023-03-11  0:27 ` [PATCH 11/16] libconvert-asn1-perl: Fix ptest dependencies Richard Purdie
                   ` (5 subsequent siblings)
  14 siblings, 1 reply; 18+ messages in thread
From: Richard Purdie @ 2023-03-11  0:27 UTC (permalink / raw)
  To: openembedded-core

The gawk ptests need some locale information, add the missing dependency
so tests work in minimal images.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-extended/gawk/gawk_5.2.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-extended/gawk/gawk_5.2.1.bb b/meta/recipes-extended/gawk/gawk_5.2.1.bb
index fbe6e7040b0..d13110ddbec 100644
--- a/meta/recipes-extended/gawk/gawk_5.2.1.bb
+++ b/meta/recipes-extended/gawk/gawk_5.2.1.bb
@@ -62,7 +62,7 @@ do_install_ptest() {
 	rm -f ${D}${PTEST_PATH}/test/timeout.*
 }
 
-RDEPENDS:${PN}-ptest += "make"
+RDEPENDS:${PN}-ptest += "make locale-base-en-us"
 
 RDEPENDS:${PN}-ptest:append:libc-glibc = " locale-base-en-us.iso-8859-1"
 
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 11/16] libconvert-asn1-perl: Fix ptest dependencies
  2023-03-11  0:27 [PATCH 01/16] m4/opkg/ethtool/attr/libgpg-error: Add missing bash ptest dependency Richard Purdie
                   ` (8 preceding siblings ...)
  2023-03-11  0:27 ` [PATCH 10/16] gawk: Fix ptest dependency Richard Purdie
@ 2023-03-11  0:27 ` Richard Purdie
  2023-03-11  0:27 ` [PATCH 12/16] libxml-sax-perl: " Richard Purdie
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Richard Purdie @ 2023-03-11  0:27 UTC (permalink / raw)
  To: openembedded-core

Add dependencies for missing perl modules to fix execution in
minimal images.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-extended/perl/libconvert-asn1-perl_0.33.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-extended/perl/libconvert-asn1-perl_0.33.bb b/meta/recipes-extended/perl/libconvert-asn1-perl_0.33.bb
index 2714582957c..d82692c0333 100644
--- a/meta/recipes-extended/perl/libconvert-asn1-perl_0.33.bb
+++ b/meta/recipes-extended/perl/libconvert-asn1-perl_0.33.bb
@@ -15,7 +15,8 @@ inherit cpan ptest-perl
 
 EXTRA_PERLFLAGS = "-I ${PERLHOSTLIB}"
 
-RDEPENDS:${PN} += "perl-module-exporter perl-module-constant perl-module-encode perl-module-encode-encoding perl-module-utf8 perl-module-socket perl-module-time-local perl-module-posix"
+RDEPENDS:${PN} += "perl-module-exporter perl-module-constant perl-module-encode perl-module-encode-encoding perl-module-utf8 \
+                   perl-module-socket perl-module-time-local perl-module-posix perl-module-scalar-util perl-module-test-more"
 RDEPENDS:${PN}-ptest += "perl-module-math-bigint perl-module-io-socket perl-module-data-dumper perl-module-math-bigint-calc"
 
 BBCLASSEXTEND = "native"
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 12/16] libxml-sax-perl: Fix ptest dependencies
  2023-03-11  0:27 [PATCH 01/16] m4/opkg/ethtool/attr/libgpg-error: Add missing bash ptest dependency Richard Purdie
                   ` (9 preceding siblings ...)
  2023-03-11  0:27 ` [PATCH 11/16] libconvert-asn1-perl: Fix ptest dependencies Richard Purdie
@ 2023-03-11  0:27 ` Richard Purdie
  2023-03-11  0:27 ` [PATCH 13/16] babeltrace2: Fix ptest execution in minimal images and add debug info Richard Purdie
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Richard Purdie @ 2023-03-11  0:27 UTC (permalink / raw)
  To: openembedded-core

Add a missing ptest perl module dependency to fix execution in minimal
ptest images.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-extended/perl/libxml-sax-perl_1.02.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-extended/perl/libxml-sax-perl_1.02.bb b/meta/recipes-extended/perl/libxml-sax-perl_1.02.bb
index bc2aa0821eb..b5b111d2274 100644
--- a/meta/recipes-extended/perl/libxml-sax-perl_1.02.bb
+++ b/meta/recipes-extended/perl/libxml-sax-perl_1.02.bb
@@ -29,7 +29,7 @@ do_install_ptest() {
 	chown -R root:root ${D}${PTEST_PATH}/testfiles
 }
 
-RDEPENDS:${PN} += "perl-module-encode perl-module-perlio"
+RDEPENDS:${PN} += "perl-module-encode perl-module-perlio perl-module-encode-encoding"
 
 RDEPENDS:${PN}-ptest += " \
     perl-module-base  \
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 13/16] babeltrace2: Fix ptest execution in minimal images and add debug info
  2023-03-11  0:27 [PATCH 01/16] m4/opkg/ethtool/attr/libgpg-error: Add missing bash ptest dependency Richard Purdie
                   ` (10 preceding siblings ...)
  2023-03-11  0:27 ` [PATCH 12/16] libxml-sax-perl: " Richard Purdie
@ 2023-03-11  0:27 ` Richard Purdie
  2023-03-11  0:27 ` [PATCH 14/16] babeltrace: Fix ptest dependency Richard Purdie
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Richard Purdie @ 2023-03-11  0:27 UTC (permalink / raw)
  To: openembedded-core

Tweak the ptest dependencies so they work correctly in minimal images. There
appears to be some usage of find or xargs that doesn't work with busybox.

Also improve the test runner so the test-suite.log is dumped upon error
which makes debugging much easier.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-kernel/lttng/babeltrace2/run-ptest | 12 +++++++++++-
 meta/recipes-kernel/lttng/babeltrace2_2.0.4.bb  |  3 ++-
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-kernel/lttng/babeltrace2/run-ptest b/meta/recipes-kernel/lttng/babeltrace2/run-ptest
index 72fe2234362..71a9c81bfbe 100755
--- a/meta/recipes-kernel/lttng/babeltrace2/run-ptest
+++ b/meta/recipes-kernel/lttng/babeltrace2/run-ptest
@@ -6,4 +6,14 @@
 # test plan to raise ERRORs; this is just noise.
 makeargs="LOG_DRIVER_FLAGS=--ignore-exit abs_top_srcdir=$PWD abs_top_builddir=$PWD GREP=grep SED=sed PYTHON=python3"
 
-exec make -C tests -k -s $makeargs $target 2>/dev/null
+exec 2> error.log
+make -C tests -k -s $makeargs $target
+exitcode=$?
+if [ -e error.log ]; then
+    cat error.log
+fi
+if [ -e tests/test-suite.log ]; then
+    cat tests/test-suite.log
+fi
+
+exit $exitcode
\ No newline at end of file
diff --git a/meta/recipes-kernel/lttng/babeltrace2_2.0.4.bb b/meta/recipes-kernel/lttng/babeltrace2_2.0.4.bb
index b48f07ea0df..04c2a279041 100644
--- a/meta/recipes-kernel/lttng/babeltrace2_2.0.4.bb
+++ b/meta/recipes-kernel/lttng/babeltrace2_2.0.4.bb
@@ -29,7 +29,8 @@ FILES:${PN} += "${libdir}/babeltrace2/plugins/*.so"
 
 ASNEEDED = ""
 
-RDEPENDS:${PN}-ptest += "bash gawk python3"
+# coreutils since we need full mktemp
+RDEPENDS:${PN}-ptest += "bash gawk python3 make grep coreutils findutils"
 
 do_compile_ptest () {
     make -C tests all
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 14/16] babeltrace: Fix ptest dependency
  2023-03-11  0:27 [PATCH 01/16] m4/opkg/ethtool/attr/libgpg-error: Add missing bash ptest dependency Richard Purdie
                   ` (11 preceding siblings ...)
  2023-03-11  0:27 ` [PATCH 13/16] babeltrace2: Fix ptest execution in minimal images and add debug info Richard Purdie
@ 2023-03-11  0:27 ` Richard Purdie
  2023-03-11  0:27 ` [PATCH 15/16] lttng-tools: Improve ptest debugging and fix dependencies Richard Purdie
  2023-03-11  0:27 ` [PATCH 16/16] busybox: Fix ptest dependencies Richard Purdie
  14 siblings, 0 replies; 18+ messages in thread
From: Richard Purdie @ 2023-03-11  0:27 UTC (permalink / raw)
  To: openembedded-core

Add a missing dependency on make so ptests can run in a minimal image.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-kernel/lttng/babeltrace_1.5.11.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/lttng/babeltrace_1.5.11.bb b/meta/recipes-kernel/lttng/babeltrace_1.5.11.bb
index 8e2fe4164d5..194a773a245 100644
--- a/meta/recipes-kernel/lttng/babeltrace_1.5.11.bb
+++ b/meta/recipes-kernel/lttng/babeltrace_1.5.11.bb
@@ -21,7 +21,7 @@ EXTRA_OECONF = "--disable-debug-info"
 
 ASNEEDED = ""
 
-RDEPENDS:${PN}-ptest += "bash gawk"
+RDEPENDS:${PN}-ptest += "bash gawk make"
 
 addtask do_patch_ptest_path after do_patch before do_configure
 do_patch_ptest_path () {
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 15/16] lttng-tools: Improve ptest debugging and fix dependencies
  2023-03-11  0:27 [PATCH 01/16] m4/opkg/ethtool/attr/libgpg-error: Add missing bash ptest dependency Richard Purdie
                   ` (12 preceding siblings ...)
  2023-03-11  0:27 ` [PATCH 14/16] babeltrace: Fix ptest dependency Richard Purdie
@ 2023-03-11  0:27 ` Richard Purdie
  2023-03-11  0:27 ` [PATCH 16/16] busybox: Fix ptest dependencies Richard Purdie
  14 siblings, 0 replies; 18+ messages in thread
From: Richard Purdie @ 2023-03-11  0:27 UTC (permalink / raw)
  To: openembedded-core

Improve the ptest runner script:

* log output is available should any test fail to aid debugging
* document how to limit the runner to a single test
* stop hiding errors to stderr
* allow easier single test execution by avoiding path issues with PWD

Also depend upon binutils since one of the tests uses addr2line.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 .../lttng/lttng-tools/run-ptest               | 19 ++++++++++++++++---
 .../lttng/lttng-tools_2.13.9.bb               |  4 ++--
 2 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-kernel/lttng/lttng-tools/run-ptest b/meta/recipes-kernel/lttng/lttng-tools/run-ptest
index c4dbe50f21b..bf99322ef21 100755
--- a/meta/recipes-kernel/lttng/lttng-tools/run-ptest
+++ b/meta/recipes-kernel/lttng/lttng-tools/run-ptest
@@ -2,6 +2,19 @@
 # Without --ignore-exit, the tap harness causes any FAILs within a
 # test plan to raise ERRORs; this is just noise.
 export LD_LIBRARY_PATH=FIXMEPTESTPATH/tests/utils/testapp/userspace-probe-elf-binary/.libs
-makeargs="LOG_DRIVER_FLAGS=--ignore-exit top_srcdir=$PWD top_builddir=$PWD"
-make -k -t all >/dev/null 2>&1
-exec make -k -s $makeargs check 2>/dev/null | sed -e 's#/tmp/tmp\...........#/tmp/tmp.XXXXXXXXXX#g'
+makeargs="LOG_DRIVER_FLAGS=--ignore-exit top_srcdir=FIXMEPTESTPATH top_builddir=FIXMEPTESTPATH"
+make -k -t all >error.log 2>&1
+# Can specify a test e.g.:
+# -C tests/regression/ check TESTS='kernel/test_callstack'
+make -k -s $makeargs check 2>error.log | sed -e 's#/tmp/tmp\...........#/tmp/tmp.XXXXXXXXXX#g'
+exitcode=$?
+if [ -e error.log ]; then
+    cat error.log
+fi
+if [ -e tests/unit/test-suite.log ]; then
+    cat tests/unit/test-suite.log
+fi
+if [ -e tests/regression/test-suite.log ]; then
+    cat tests/regression/test-suite.log
+fi
+exit $exitcode
diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.13.9.bb b/meta/recipes-kernel/lttng/lttng-tools_2.13.9.bb
index 340b254b46a..58c0378d66f 100644
--- a/meta/recipes-kernel/lttng/lttng-tools_2.13.9.bb
+++ b/meta/recipes-kernel/lttng/lttng-tools_2.13.9.bb
@@ -15,7 +15,7 @@ include lttng-platforms.inc
 DEPENDS = "liburcu popt libxml2 util-linux bison-native"
 RDEPENDS:${PN} = "libgcc"
 RRECOMMENDS:${PN} += "${LTTNGMODULES}"
-RDEPENDS:${PN}-ptest += "make perl bash gawk babeltrace procps perl-module-overloading coreutils util-linux kmod ${LTTNGMODULES} sed python3-core grep"
+RDEPENDS:${PN}-ptest += "make perl bash gawk babeltrace procps perl-module-overloading coreutils util-linux kmod ${LTTNGMODULES} sed python3-core grep binutils"
 RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-utils"
 RDEPENDS:${PN}-ptest:append:libc-musl = " musl-utils"
 # babelstats.pl wants getopt-long
@@ -84,7 +84,7 @@ do_install_ptest () {
     done
 
     # Patch in the correct path for the custom libraries a helper executable needs
-    sed -i -e 's!FIXMEPTESTPATH!${PTEST_PATH}!' "${D}${PTEST_PATH}/run-ptest"
+    sed -i -e 's!FIXMEPTESTPATH!${PTEST_PATH}!g' "${D}${PTEST_PATH}/run-ptest"
 
     # Prevent 'make check' from recursing into non-test subdirectories.
     sed -i -e 's!^SUBDIRS = .*!SUBDIRS = tests!' "${D}${PTEST_PATH}/Makefile"
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 16/16] busybox: Fix ptest dependencies
  2023-03-11  0:27 [PATCH 01/16] m4/opkg/ethtool/attr/libgpg-error: Add missing bash ptest dependency Richard Purdie
                   ` (13 preceding siblings ...)
  2023-03-11  0:27 ` [PATCH 15/16] lttng-tools: Improve ptest debugging and fix dependencies Richard Purdie
@ 2023-03-11  0:27 ` Richard Purdie
  14 siblings, 0 replies; 18+ messages in thread
From: Richard Purdie @ 2023-03-11  0:27 UTC (permalink / raw)
  To: openembedded-core

Ironically, busybox ptests don't all work without coreutils being present. This
dependency fixes execution in minimal images but the failing start-stop-daemon
test case should probably be investigated in due course and the dependency
removed when possible.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-core/busybox/busybox.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc
index 62dc839245d..4569acd475c 100644
--- a/meta/recipes-core/busybox/busybox.inc
+++ b/meta/recipes-core/busybox/busybox.inc
@@ -55,7 +55,7 @@ RDEPENDS:${PN} = "${@["", "busybox-inittab"][(d.getVar('VIRTUAL-RUNTIME_init_man
 inherit cml1 systemd update-rc.d ptest
 
 # busybox's unzip test case needs zip command, which busybox itself does not provide
-RDEPENDS:${PN}-ptest = "zip"
+RDEPENDS:${PN}-ptest = "zip coreutils"
 
 # internal helper
 def busybox_cfg(feature, tokens, cnf, rem):
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 18+ messages in thread

* Re: [OE-core] [PATCH 10/16] gawk: Fix ptest dependency
  2023-03-11  0:27 ` [PATCH 10/16] gawk: Fix ptest dependency Richard Purdie
@ 2023-03-11  1:40   ` Khem Raj
  2023-03-11  7:42     ` Richard Purdie
  0 siblings, 1 reply; 18+ messages in thread
From: Khem Raj @ 2023-03-11  1:40 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core

On Fri, Mar 10, 2023 at 4:27 PM Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
>
> The gawk ptests need some locale information, add the missing dependency
> so tests work in minimal images.
>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> ---
>  meta/recipes-extended/gawk/gawk_5.2.1.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-extended/gawk/gawk_5.2.1.bb b/meta/recipes-extended/gawk/gawk_5.2.1.bb
> index fbe6e7040b0..d13110ddbec 100644
> --- a/meta/recipes-extended/gawk/gawk_5.2.1.bb
> +++ b/meta/recipes-extended/gawk/gawk_5.2.1.bb
> @@ -62,7 +62,7 @@ do_install_ptest() {
>         rm -f ${D}${PTEST_PATH}/test/timeout.*
>  }
>
> -RDEPENDS:${PN}-ptest += "make"
> +RDEPENDS:${PN}-ptest += "make locale-base-en-us"
>

I think it should be added below so it does not break musl builds.

>  RDEPENDS:${PN}-ptest:append:libc-glibc = " locale-base-en-us.iso-8859-1"
>
> --
> 2.38.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#178353): https://lists.openembedded.org/g/openembedded-core/message/178353
> Mute This Topic: https://lists.openembedded.org/mt/97533194/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [OE-core] [PATCH 10/16] gawk: Fix ptest dependency
  2023-03-11  1:40   ` [OE-core] " Khem Raj
@ 2023-03-11  7:42     ` Richard Purdie
  0 siblings, 0 replies; 18+ messages in thread
From: Richard Purdie @ 2023-03-11  7:42 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core

On Fri, 2023-03-10 at 17:40 -0800, Khem Raj wrote:
> On Fri, Mar 10, 2023 at 4:27 PM Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > 
> > The gawk ptests need some locale information, add the missing dependency
> > so tests work in minimal images.
> > 
> > Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> > ---
> >  meta/recipes-extended/gawk/gawk_5.2.1.bb | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/meta/recipes-extended/gawk/gawk_5.2.1.bb b/meta/recipes-extended/gawk/gawk_5.2.1.bb
> > index fbe6e7040b0..d13110ddbec 100644
> > --- a/meta/recipes-extended/gawk/gawk_5.2.1.bb
> > +++ b/meta/recipes-extended/gawk/gawk_5.2.1.bb
> > @@ -62,7 +62,7 @@ do_install_ptest() {
> >         rm -f ${D}${PTEST_PATH}/test/timeout.*
> >  }
> > 
> > -RDEPENDS:${PN}-ptest += "make"
> > +RDEPENDS:${PN}-ptest += "make locale-base-en-us"
> > 
> 
> I think it should be added below so it does not break musl builds.

Interestingly, musl builds didn't break but I'll tweak the patch, well
spotted!

Cheers,

Richard


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-03-11  7:42 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-11  0:27 [PATCH 01/16] m4/opkg/ethtool/attr/libgpg-error: Add missing bash ptest dependency Richard Purdie
2023-03-11  0:27 ` [PATCH 02/16] openssl: Add missing ptest dependency on openssl-bin Richard Purdie
2023-03-11  0:27 ` [PATCH 03/16] valgrind: Add missing utf-32 gconv dependency for ptests Richard Purdie
2023-03-11  0:27 ` [PATCH 04/16] perl: Add missing procps-ps " Richard Purdie
2023-03-11  0:27 ` [PATCH 05/16] acl/attr: ptest fixes and improvements Richard Purdie
2023-03-11  0:27 ` [PATCH 06/16] m4: Add missing ptest dependency Richard Purdie
2023-03-11  0:27 ` [PATCH 07/16] libmodule-build-perl: Fix ptest dependencies Richard Purdie
2023-03-11  0:27 ` [PATCH 08/16] bc: Fix ptest test output naming Richard Purdie
2023-03-11  0:27 ` [PATCH 09/16] findutils: Fix ptest dependency issue Richard Purdie
2023-03-11  0:27 ` [PATCH 10/16] gawk: Fix ptest dependency Richard Purdie
2023-03-11  1:40   ` [OE-core] " Khem Raj
2023-03-11  7:42     ` Richard Purdie
2023-03-11  0:27 ` [PATCH 11/16] libconvert-asn1-perl: Fix ptest dependencies Richard Purdie
2023-03-11  0:27 ` [PATCH 12/16] libxml-sax-perl: " Richard Purdie
2023-03-11  0:27 ` [PATCH 13/16] babeltrace2: Fix ptest execution in minimal images and add debug info Richard Purdie
2023-03-11  0:27 ` [PATCH 14/16] babeltrace: Fix ptest dependency Richard Purdie
2023-03-11  0:27 ` [PATCH 15/16] lttng-tools: Improve ptest debugging and fix dependencies Richard Purdie
2023-03-11  0:27 ` [PATCH 16/16] busybox: Fix ptest dependencies Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.