summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-08-18 11:28:51 +0530
committerSteve Sakoman <steve@sakoman.com>2023-08-26 04:24:02 -1000
commit8f53c7b15181c6d4c31ac700267be20d45b2801f (patch)
treef66fd91a4d8e840a50a635c323c92c26f27e9e7e
parent5c42f2433c9a2135e68ba3ae1dfb8ef04a11b0d7 (diff)
downloadpoky-8f53c7b15181c6d4c31ac700267be20d45b2801f.tar.gz
acl/attr: ptest fixes and improvements
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. (From OE-Core rev: fbb9c596b8e6a8a1260dd7aefddf138d20bf64df) (From OE-Core rev: 5908ccf65b5ca4a0473a57774f06515d6bc9f56c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 2c948fa0250b765bc5f2fbe63c82258601cc77ff) Signed-off-by: Bhabu Bindu <bhabu.bindu@kpit.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-support/attr/acl/run-ptest6
-rw-r--r--meta/recipes-support/attr/acl_2.3.1.bb1
-rw-r--r--meta/recipes-support/attr/attr.inc1
-rw-r--r--meta/recipes-support/attr/attr/run-ptest7
4 files changed, 15 insertions, 0 deletions
diff --git a/meta/recipes-support/attr/acl/run-ptest b/meta/recipes-support/attr/acl/run-ptest
index 4312823365..3af75c84fe 100644
--- a/meta/recipes-support/attr/acl/run-ptest
+++ b/meta/recipes-support/attr/acl/run-ptest
@@ -7,4 +7,10 @@
7mkdir -p /tmp/acl-ptest/test 7mkdir -p /tmp/acl-ptest/test
8cp test/test.* /tmp/acl-ptest/test 8cp test/test.* /tmp/acl-ptest/test
9 9
10set +e
10make test-suite.log 11make test-suite.log
12exitcode=$?
13if [ $exitcode -ne 0 -a -e test-suite.log ]; then
14 cat test-suite.log
15fi
16exit $exitcode
diff --git a/meta/recipes-support/attr/acl_2.3.1.bb b/meta/recipes-support/attr/acl_2.3.1.bb
index aca04a9aac..c2c9ba9069 100644
--- a/meta/recipes-support/attr/acl_2.3.1.bb
+++ b/meta/recipes-support/attr/acl_2.3.1.bb
@@ -62,6 +62,7 @@ RDEPENDS:${PN}-ptest = "acl \
62 bash \ 62 bash \
63 coreutils \ 63 coreutils \
64 perl \ 64 perl \
65 perl-module-constant \
65 perl-module-filehandle \ 66 perl-module-filehandle \
66 perl-module-getopt-std \ 67 perl-module-getopt-std \
67 perl-module-posix \ 68 perl-module-posix \
diff --git a/meta/recipes-support/attr/attr.inc b/meta/recipes-support/attr/attr.inc
index a4e38f2b19..56028edb12 100644
--- a/meta/recipes-support/attr/attr.inc
+++ b/meta/recipes-support/attr/attr.inc
@@ -50,6 +50,7 @@ do_install_ptest() {
50 50
51RDEPENDS:${PN}-ptest = "attr \ 51RDEPENDS:${PN}-ptest = "attr \
52 coreutils \ 52 coreutils \
53 perl-module-constant \
53 perl-module-filehandle \ 54 perl-module-filehandle \
54 perl-module-getopt-std \ 55 perl-module-getopt-std \
55 perl-module-posix \ 56 perl-module-posix \
diff --git a/meta/recipes-support/attr/attr/run-ptest b/meta/recipes-support/attr/attr/run-ptest
index f64244f239..3e7a3a17a0 100644
--- a/meta/recipes-support/attr/attr/run-ptest
+++ b/meta/recipes-support/attr/attr/run-ptest
@@ -1,3 +1,10 @@
1#!/bin/sh 1#!/bin/sh
2 2
3set +e
3make test-suite.log 4make test-suite.log
5exitcode=$?
6if [ $exitcode -ne 0 -a -e test-suite.log ]; then
7 cat test-suite.log
8fi
9exit $exitcode
10