summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/pam
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-04-29 21:18:08 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-05-02 23:21:42 +0100
commit7cd4258049b4de423402b02fa587ec97b573a100 (patch)
treea41709a4380ef9e87b8cf315e99488d701634e25 /meta/recipes-extended/pam
parent0a5079681e063b801d72d2cda04335aae4e2c604 (diff)
downloadpoky-7cd4258049b4de423402b02fa587ec97b573a100.tar.gz
libpam: Provide needed env for tst-pam_start_confdir ptest
tst-pam_start_confdir needs a file called confdir and it should reside in directory pointed by srcdir env variable, therefore copy confdir into ptest package and export srcdir before running the ptests (From OE-Core rev: 149d84b7eba8240737a301d0fd75b69e8a767854) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/pam')
-rw-r--r--meta/recipes-extended/pam/libpam/run-ptest5
-rw-r--r--meta/recipes-extended/pam/libpam_1.5.1.bb1
2 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-extended/pam/libpam/run-ptest b/meta/recipes-extended/pam/libpam/run-ptest
index 69e729ce2a..9c304aee47 100644
--- a/meta/recipes-extended/pam/libpam/run-ptest
+++ b/meta/recipes-extended/pam/libpam/run-ptest
@@ -2,9 +2,10 @@
2 2
3cd tests 3cd tests
4 4
5export srcdir=.
6
5failed=0 7failed=0
6all=0 8all=0
7
8for f in tst-*; do 9for f in tst-*; do
9 "./$f" > /dev/null 2>&1 10 "./$f" > /dev/null 2>&1
10 case "$?" in 11 case "$?" in
@@ -28,4 +29,4 @@ if [ "$failed" -eq 0 ] ; then
28else 29else
29 echo "$failed of $all tests failed" 30 echo "$failed of $all tests failed"
30fi 31fi
31 32unset srcdir
diff --git a/meta/recipes-extended/pam/libpam_1.5.1.bb b/meta/recipes-extended/pam/libpam_1.5.1.bb
index 4363e16b9b..f0c8caaac2 100644
--- a/meta/recipes-extended/pam/libpam_1.5.1.bb
+++ b/meta/recipes-extended/pam/libpam_1.5.1.bb
@@ -154,6 +154,7 @@ do_install_ptest() {
154 if [ ${PTEST_ENABLED} = "1" ]; then 154 if [ ${PTEST_ENABLED} = "1" ]; then
155 mkdir -p ${D}${PTEST_PATH}/tests 155 mkdir -p ${D}${PTEST_PATH}/tests
156 install -m 0755 ${B}/tests/.libs/* ${D}${PTEST_PATH}/tests 156 install -m 0755 ${B}/tests/.libs/* ${D}${PTEST_PATH}/tests
157 install -m 0644 ${S}/tests/confdir ${D}${PTEST_PATH}/tests
157 fi 158 fi
158} 159}
159 160