diff options
| author | David Pierret <david.pierret@smile.fr> | 2023-10-13 17:39:51 +0200 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2023-10-17 08:23:02 -0400 |
| commit | f4ce7512643c1af747fabb6bd1c853d6ca825d21 (patch) | |
| tree | 4b797823c97f0d7b474faad9170fed63dc2a498f | |
| parent | dcc363969662b640b8777bffefbdcd00bcfcd41b (diff) | |
| download | meta-openembedded-f4ce7512643c1af747fabb6bd1c853d6ca825d21.tar.gz | |
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>
(cherry picked from commit 74022f1009cca4d85167b8b759f52d4ff0f92f41)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
| -rw-r--r-- | meta-perl/recipes-perl/libtext/libtext-diff-perl/run-ptest | 19 | ||||
| -rw-r--r-- | meta-perl/recipes-perl/libtext/libtext-diff-perl_1.41.bb | 11 |
2 files changed, 28 insertions, 2 deletions
diff --git a/meta-perl/recipes-perl/libtext/libtext-diff-perl/run-ptest b/meta-perl/recipes-perl/libtext/libtext-diff-perl/run-ptest new file mode 100644 index 0000000000..c65b6cf8e0 --- /dev/null +++ b/meta-perl/recipes-perl/libtext/libtext-diff-perl/run-ptest | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | for case in `find t -type f -name '*.t'`; do | ||
| 4 | perl $case >$case.output 2>&1 | ||
| 5 | ret=$? | ||
| 6 | cat $case.output | ||
| 7 | if [ $ret -ne 0 ]; then | ||
| 8 | echo "FAIL: ${case%.t}" | ||
| 9 | elif grep -i 'SKIP' $case.output; then | ||
| 10 | echo "SKIP: ${case%.t}" | ||
| 11 | else | ||
| 12 | echo "PASS: ${case%.t}" | ||
| 13 | fi | ||
| 14 | |||
| 15 | rm -f $case.output | ||
| 16 | done | ||
| 17 | |||
| 18 | |||
| 19 | |||
diff --git a/meta-perl/recipes-perl/libtext/libtext-diff-perl_1.41.bb b/meta-perl/recipes-perl/libtext/libtext-diff-perl_1.41.bb index afdf63ede4..9dfadde8e5 100644 --- a/meta-perl/recipes-perl/libtext/libtext-diff-perl_1.41.bb +++ b/meta-perl/recipes-perl/libtext/libtext-diff-perl_1.41.bb | |||
| @@ -11,17 +11,24 @@ HOMEPAGE = "http://search.cpan.org/~ovid/Text-Diff/" | |||
| 11 | LICENSE = "Artistic-1.0 | GPL-2.0-or-later" | 11 | LICENSE = "Artistic-1.0 | GPL-2.0-or-later" |
| 12 | LIC_FILES_CHKSUM = "file://LICENSE;md5=385c55653886acac3821999a3ccd17b3" | 12 | LIC_FILES_CHKSUM = "file://LICENSE;md5=385c55653886acac3821999a3ccd17b3" |
| 13 | 13 | ||
| 14 | SRC_URI = "${CPAN_MIRROR}/authors/id/O/OV/OVID/Text-Diff-${PV}.tar.gz" | 14 | SRC_URI = "${CPAN_MIRROR}/authors/id/O/OV/OVID/Text-Diff-${PV}.tar.gz \ |
| 15 | file://run-ptest \ | ||
| 16 | " | ||
| 15 | SRC_URI[md5sum] = "30d56e6dd5551ca16b8e16cc7299dc21" | 17 | SRC_URI[md5sum] = "30d56e6dd5551ca16b8e16cc7299dc21" |
| 16 | SRC_URI[sha256sum] = "a67f50a48e313c1680cc662109ce5f913ea71454db355d0cf4db87ac89d2d2fa" | 18 | SRC_URI[sha256sum] = "a67f50a48e313c1680cc662109ce5f913ea71454db355d0cf4db87ac89d2d2fa" |
| 17 | 19 | ||
| 18 | S = "${WORKDIR}/Text-Diff-${PV}" | 20 | S = "${WORKDIR}/Text-Diff-${PV}" |
| 19 | 21 | ||
| 20 | inherit cpan | 22 | inherit cpan ptest |
| 23 | RDEPENDS:${PN}-ptest += "perl-module-test perl-module-test-more" | ||
| 21 | 24 | ||
| 22 | RDEPENDS:${PN} = " libalgorithm-diff-perl \ | 25 | RDEPENDS:${PN} = " libalgorithm-diff-perl \ |
| 23 | perl-module-extutils-makemaker \ | 26 | perl-module-extutils-makemaker \ |
| 24 | perl-module-exporter \ | 27 | perl-module-exporter \ |
| 25 | " | 28 | " |
| 26 | 29 | ||
| 30 | do_install_ptest () { | ||
| 31 | cp -r ${B}/t ${D}${PTEST_PATH} | ||
| 32 | } | ||
| 33 | |||
| 27 | BBCLASSEXTEND = "native" | 34 | BBCLASSEXTEND = "native" |
