mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00

* Enable easier testing of perl modules - Installs t/* to PTEST_PATH - Uses common run-ptest script (From OE-Core rev: aeffa15350252489c62cd221b2e0548043fec548) Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
17 lines
334 B
Bash
17 lines
334 B
Bash
#!/bin/sh
|
|
|
|
for case in `find t -type f -name '*.t'`; do
|
|
perl $case >$case.output 2>&1
|
|
ret=$?
|
|
cat $case.output
|
|
if [ $ret -ne 0 ]; then
|
|
echo "FAIL: ${case%.t}"
|
|
elif grep -i 'SKIP' $case.output; then
|
|
echo "SKIP: ${case%.t}"
|
|
else
|
|
echo "PASS: ${case%.t}"
|
|
fi
|
|
|
|
rm -f $case.output
|
|
done
|