From: Kai Kang Date: Wed, 19 Mar 2025 08:15:32 +0000 (-0700) Subject: libpam: add ptest cases back X-Git-Tag: yocto-5.2~148 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba8266267b4a89285bba0fceeaa1507957d318fb;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git libpam: add ptest cases back It removes the installation of ptest cases when upgrade libpam to 1.7.0. Add them back to make ptest work. And 2 more cases in libpam 1.7.0. Signed-off-by: Kai Kang Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-extended/pam/libpam_1.7.0.bb b/meta/recipes-extended/pam/libpam_1.7.0.bb index 1be3c9e2bb9..4abc52bd93b 100644 --- a/meta/recipes-extended/pam/libpam_1.7.0.bb +++ b/meta/recipes-extended/pam/libpam_1.7.0.bb @@ -142,6 +142,12 @@ do_install:append() { fi } +do_install_ptest() { + mkdir -p ${D}${PTEST_PATH}/tests + find ${B}/tests -maxdepth 1 -type f -exec cp {} ${D}${PTEST_PATH}/tests \; + install -m 0644 ${S}/tests/confdir ${D}${PTEST_PATH}/tests +} + pkg_postinst:${PN}() { if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then /etc/init.d/populate-volatile.sh update