mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
libtext: add ptest
Signed-off-by: David Pierret <david.pierret@smile.fr> Reviewed-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
3f9032f126
commit
74022f1009
19
meta-perl/recipes-perl/libtext/libtext-diff-perl/run-ptest
Normal file
19
meta-perl/recipes-perl/libtext/libtext-diff-perl/run-ptest
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#!/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
|
||||
|
||||
|
||||
|
||||
|
|
@ -11,17 +11,24 @@ HOMEPAGE = "http://search.cpan.org/~ovid/Text-Diff/"
|
|||
LICENSE = "Artistic-1.0 | GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=385c55653886acac3821999a3ccd17b3"
|
||||
|
||||
SRC_URI = "${CPAN_MIRROR}/authors/id/O/OV/OVID/Text-Diff-${PV}.tar.gz"
|
||||
SRC_URI = "${CPAN_MIRROR}/authors/id/O/OV/OVID/Text-Diff-${PV}.tar.gz \
|
||||
file://run-ptest \
|
||||
"
|
||||
SRC_URI[md5sum] = "30d56e6dd5551ca16b8e16cc7299dc21"
|
||||
SRC_URI[sha256sum] = "a67f50a48e313c1680cc662109ce5f913ea71454db355d0cf4db87ac89d2d2fa"
|
||||
|
||||
S = "${WORKDIR}/Text-Diff-${PV}"
|
||||
|
||||
inherit cpan
|
||||
inherit cpan ptest
|
||||
RDEPENDS:${PN}-ptest += "perl-module-test perl-module-test-more"
|
||||
|
||||
RDEPENDS:${PN} = " libalgorithm-diff-perl \
|
||||
perl-module-extutils-makemaker \
|
||||
perl-module-exporter \
|
||||
"
|
||||
|
||||
do_install_ptest () {
|
||||
cp -r ${B}/t ${D}${PTEST_PATH}
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user