]> code.ossystems Code Review - openembedded-core.git/commitdiff
libpam: Provide needed env for tst-pam_start_confdir ptest
authorKhem Raj <raj.khem@gmail.com>
Fri, 30 Apr 2021 04:18:08 +0000 (21:18 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 2 May 2021 22:21:39 +0000 (23:21 +0100)
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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/pam/libpam/run-ptest
meta/recipes-extended/pam/libpam_1.5.1.bb

index 69e729ce2a5030dadc3750e3e5a2a50ba8c5541b..9c304aee479bbefd9a1cf21efa3b1773170abc4b 100644 (file)
@@ -2,9 +2,10 @@
 
 cd tests
 
+export srcdir=.
+
 failed=0
 all=0
-
 for f in tst-*; do
     "./$f" > /dev/null 2>&1
     case "$?" in
@@ -28,4 +29,4 @@ if [ "$failed" -eq 0 ] ; then
 else
   echo "$failed of $all tests failed"
 fi
-
+unset srcdir
index 4363e16b9b6a64a8c46de544e795625746957064..f0c8caaac277e79f70fbdac7f4cf3b8957729894 100644 (file)
@@ -154,6 +154,7 @@ do_install_ptest() {
     if [ ${PTEST_ENABLED} = "1" ]; then
         mkdir -p ${D}${PTEST_PATH}/tests
         install -m 0755 ${B}/tests/.libs/* ${D}${PTEST_PATH}/tests
+        install -m 0644 ${S}/tests/confdir ${D}${PTEST_PATH}/tests
     fi
 }