gawk: ptest fixes
PATCH 1/2 gawk: ptest fixes
In minimal images all tests pass due to a missing dependency on make. Add the missing dependecy.
The test list created by the run-ptest script is incorrect as it includes entries like "fi". Simplify it and correct it.
Some tests are skipped due to mpfr not being enabled. Correctly mark these as SKIP.
Some tests need the "../gawk" script, create a link to it so the tests work correctly.
Also print more information in the failed test cases.
Signed-off-by Richard Purdie <[email protected]>
--- meta/recipes-extended/gawk/gawk/run-ptest | 24 +++++++++++++++++------ meta/recipes-extended/gawk/gawk_5.0.0.bb | 3 +++ 2 files changed, 21 insertions(+), 6 deletions(-)
meta/recipes-extended/gawk/gawk/run-ptest +18 -6
@@ -1,10 +1,22 @@ #!/bin/sh cd test -for i in `grep -vE "@|^$|#|Gt-dummy" Maketests |awk -F: '{print $1}'`; \ - do LC_ALL=${GAWKLOCALE:-C} LANG=${GAWKLOCALE:-C} srcdir=`pwd` AWK=gawk CMP=cmp \ - make -f Maketests $i >$i.tmp 2>&1; \ - grep -q "Error" $i.tmp; \ - if [ $? -eq 0 ]; then echo "FAIL: $i"; \ - else echo "PASS: $i"; rm -f $i.tmp; fi; \ +for i in `grep -E "^[a-z0-9_-]*:$" Maketests |awk -F: '{print $1}'`; do + #LC_ALL=${GAWKLOCALE:-C} LANG=${GAWKLOCALE:-C} + srcdir=`pwd` AWKPROG=gawk AWK=gawk CMP=cmp make -f Maketests $i >$i.tmp 2>&1 + if [ -e _$i ]; then + cat _$i + grep -q "support not compiled in" _$i + if [ $? -eq 0 ]; then + echo "SKIP: $i" + continue + fi + fi + grep -q "Error" $i.tmp + if [ $? -eq 0 ]; then + echo "FAIL: $i" + else + echo "PASS: $i" + rm -f $i.tmp + fi done
meta/recipes-extended/gawk/gawk_5.0.0.bb +3 -0
@@ -40,6 +40,7 @@ inherit ptest do_install_ptest() { mkdir ${D}${PTEST_PATH}/test + ln -s ${bindir}/gawk ${D}${PTEST_PATH}/gawk for i in `grep -vE "@|^$|#|Gt-dummy" ${S}/test/Maketests |awk -F: '{print $1}'` Maketests inclib.awk; \ do cp ${S}/test/$i* ${D}${PTEST_PATH}/test; \ done
@@ -47,4 +48,6 @@ do_install_ptest() { -e 's|#!${base_bindir}/awk|#!${bindir}/awk|g' ${D}${PTEST_PATH}/test/*.awk } +RDEPENDS_${PN}-ptest += "make" + BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.20.1
PATCH 2/2 openssh: Document skipped test dependency
In minimal images the agent-ptrace test is skipped unless gdb is installed which explains the difference in test counts. We don't want a build dependency on gdb and the test isn't critical so just document the dependency.
Signed-off-by Richard Purdie <[email protected]>
--- meta/recipes-connectivity/openssh/openssh_8.0p1.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-connectivity/openssh/openssh_8.0p1.bb +1 -0
@@ -145,6 +145,7 @@ FILES_${PN}-keygen = "${bindir}/ssh-keygen" RDEPENDS_${PN} += "${PN}-scp ${PN}-ssh ${PN}-sshd ${PN}-keygen" RDEPENDS_${PN}-sshd += "${PN}-keygen ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-keyinit pam-plugin-loginuid', '', d)}" RRECOMMENDS_${PN}-sshd_append_class-target = " rng-tools" +# 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" RPROVIDES_${PN}-ssh = "ssh"
Signature · 1 line
2.20.1