poky/meta/files/ptest-perl/run-ptest
Tim Orling d41bcbdebf meta/classes: add ptest-perl.bbclass
* 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>
2018-03-06 06:19:18 -08:00

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