diff options
author | Julien Stephan <jstephan@baylibre.com> | 2023-08-21 16:38:01 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-08-29 09:41:07 +0100 |
commit | da67e9e9cd18d28852f6ec9e82eb50e0dd1093e3 (patch) | |
tree | c46be1122531dcb3eaf54bd56fb4805d8d6d8a38 /meta/recipes-extended/less/less_643.bb | |
parent | 64de3746ad993c76ac5392a52df5f83509aebe8e (diff) | |
download | poky-da67e9e9cd18d28852f6ec9e82eb50e0dd1093e3.tar.gz |
less: add ptest support
add ptest support for less
root@qemux86-64:~# ptest-runner less
START: ptest-runner
2023-08-21T14:22
BEGIN: /usr/lib/less/ptest
TEST chinese1.lt
PASS: chinese1 (30 steps)
TEST colorbars.lt
PASS: colorbars (222 steps)
TEST github216.lt
PASS: github216 (143 steps)
TEST github265.lt
PASS: github265 (17 steps)
TEST github329.lt
PASS: github329 (28 steps)
TEST hdr-unicode.lt
PASS: hdr-unicode (164 steps)
TEST hdr-unicode1.lt
PASS: hdr-unicode (107 steps)
TEST proc-special.lt
PASS: proc-special (107 steps)
TEST seq200.lt
PASS: seq200 (18 steps)
TEST subsearch.lt
PASS: subsearch (59 steps)
TEST table-50x200.lt
PASS: table-50x200 (467 steps)
TEST utf8-2.txt.lt
PASS: utf8-2.txt (309 steps)
TEST version.c.lt
PASS: version.c (38 steps)
RAN 13 tests with 0 errors
DURATION: 184
END: /usr/lib/less/ptest
2023-08-21T14:25
STOP: ptest-runner
TOTAL: 1 FAIL: 0
[YOCTO #15073]
(From OE-Core rev: 1d20e7990656c2135570640a329c80b7df879675)
Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/less/less_643.bb')
-rw-r--r-- | meta/recipes-extended/less/less_643.bb | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/meta/recipes-extended/less/less_643.bb b/meta/recipes-extended/less/less_643.bb index 008bbd5581..67834bdd58 100644 --- a/meta/recipes-extended/less/less_643.bb +++ b/meta/recipes-extended/less/less_643.bb | |||
@@ -25,17 +25,37 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464 \ | |||
25 | " | 25 | " |
26 | DEPENDS = "ncurses" | 26 | DEPENDS = "ncurses" |
27 | 27 | ||
28 | SRC_URI = "http://www.greenwoodsoftware.com/${BPN}/${BPN}-${PV}.tar.gz" | 28 | SRC_URI = "http://www.greenwoodsoftware.com/${BPN}/${BPN}-${PV}.tar.gz \ |
29 | file://run-ptest \ | ||
30 | " | ||
29 | 31 | ||
30 | SRC_URI[sha256sum] = "2911b5432c836fa084c8a2e68f6cd6312372c026a58faaa98862731c8b6052e8" | 32 | SRC_URI[sha256sum] = "2911b5432c836fa084c8a2e68f6cd6312372c026a58faaa98862731c8b6052e8" |
31 | 33 | ||
32 | UPSTREAM_CHECK_URI = "http://www.greenwoodsoftware.com/less/download.html" | 34 | UPSTREAM_CHECK_URI = "http://www.greenwoodsoftware.com/less/download.html" |
33 | 35 | ||
36 | inherit autotools ptest update-alternatives | ||
37 | |||
38 | EXTRA_OEMAKE += " LESSTEST=1" | ||
39 | |||
34 | inherit autotools update-alternatives | 40 | inherit autotools update-alternatives |
35 | 41 | ||
42 | do_compile_ptest () { | ||
43 | cd ${S}/lesstest | ||
44 | oe_runmake | ||
45 | } | ||
46 | |||
36 | do_install () { | 47 | do_install () { |
37 | oe_runmake 'bindir=${D}${bindir}' 'mandir=${D}${mandir}' install | 48 | oe_runmake 'bindir=${D}${bindir}' 'mandir=${D}${mandir}' install |
38 | } | 49 | } |
39 | 50 | ||
51 | do_install_ptest () { | ||
52 | cp ${S}/lesstest/lesstest ${D}${PTEST_PATH} | ||
53 | cp ${S}/lesstest/runtest ${D}${PTEST_PATH} | ||
54 | cp ${S}/lesstest/lt_screen ${D}${PTEST_PATH} | ||
55 | cp -r ${S}/lesstest/lt ${D}${PTEST_PATH} | ||
56 | } | ||
57 | |||
58 | RDEPENDS:${PN}-ptest:append = " perl-module-getopt-std perl-module-cwd locale-base-en-us" | ||
59 | |||
40 | ALTERNATIVE:${PN} = "less" | 60 | ALTERNATIVE:${PN} = "less" |
41 | ALTERNATIVE_PRIORITY = "100" | 61 | ALTERNATIVE_PRIORITY = "100" |