mirror of
git://git.yoctoproject.org/poky
synced 2026-10-07 16:32:34 +00:00
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>
33 lines
509 B
Bash
33 lines
509 B
Bash
#! /bin/sh
|
|
|
|
cd tests
|
|
|
|
export srcdir=.
|
|
|
|
failed=0
|
|
all=0
|
|
for f in tst-*; do
|
|
"./$f" > /dev/null 2>&1
|
|
case "$?" in
|
|
0)
|
|
echo "PASS: $f"
|
|
all=$((all + 1))
|
|
;;
|
|
77)
|
|
echo "SKIP: $f"
|
|
;;
|
|
*)
|
|
echo "FAIL: $f"
|
|
failed=$((failed + 1))
|
|
all=$((all + 1))
|
|
;;
|
|
esac
|
|
done
|
|
|
|
if [ "$failed" -eq 0 ] ; then
|
|
echo "All $all tests passed"
|
|
else
|
|
echo "$failed of $all tests failed"
|
|
fi
|
|
unset srcdir
|