]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
acl/attr: ptest fixes and improvements
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Mar 2023 12:40:54 +0000 (12:40 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 12 Mar 2023 23:36:44 +0000 (23:36 +0000)
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
meta/recipes-support/attr/acl_2.3.1.bb
meta/recipes-support/attr/attr.inc
meta/recipes-support/attr/attr/run-ptest

index 43128233654d31b3577877ce21cb4344b3068fa9..3af75c84fea41a025f40b7e558e83d65b0a0cb20 100644 (file)
@@ -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
index 5fb8f9ae3557652a2476b1e940585e8697804ae8..9cb19ed72f55fc5121d00a3b3784d0e525a21b06 100644 (file)
@@ -65,6 +65,7 @@ RDEPENDS:${PN}-ptest = "acl \
                         bash \
                         coreutils \
                         perl \
+                        perl-module-constant \
                         perl-module-filehandle \
                         perl-module-getopt-std \
                         perl-module-posix \
index 53d9dccb27e737b65623fc54af147f6d840c17a4..ab62563690b04dd93a9c7cbf58df6f3b91cfe088 100644 (file)
@@ -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 \
index f64244f239390dd9a3c3e257ca1523c1a2efbf80..3e7a3a17a04785d4d588510038286001a7fdac66 100644 (file)
@@ -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
+