mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
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>
This commit is contained in:
@@ -2,9 +2,10 @@
|
|||||||
|
|
||||||
cd tests
|
cd tests
|
||||||
|
|
||||||
|
export srcdir=.
|
||||||
|
|
||||||
failed=0
|
failed=0
|
||||||
all=0
|
all=0
|
||||||
|
|
||||||
for f in tst-*; do
|
for f in tst-*; do
|
||||||
"./$f" > /dev/null 2>&1
|
"./$f" > /dev/null 2>&1
|
||||||
case "$?" in
|
case "$?" in
|
||||||
@@ -28,4 +29,4 @@ if [ "$failed" -eq 0 ] ; then
|
|||||||
else
|
else
|
||||||
echo "$failed of $all tests failed"
|
echo "$failed of $all tests failed"
|
||||||
fi
|
fi
|
||||||
|
unset srcdir
|
||||||
|
|||||||
@@ -154,6 +154,7 @@ do_install_ptest() {
|
|||||||
if [ ${PTEST_ENABLED} = "1" ]; then
|
if [ ${PTEST_ENABLED} = "1" ]; then
|
||||||
mkdir -p ${D}${PTEST_PATH}/tests
|
mkdir -p ${D}${PTEST_PATH}/tests
|
||||||
install -m 0755 ${B}/tests/.libs/* ${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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user