mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 03:32:12 +02:00
diffutils: enable ptest support
Install diffutils test suite and run it as ptest. (From OE-Core rev: 14cc60db64975ad7cb8ae7d50e0233e9d59713df) Signed-off-by: Chong Lu <Chong.Lu@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
3
meta/recipes-extended/diffutils/diffutils-3.3/run-ptest
Normal file
3
meta/recipes-extended/diffutils/diffutils-3.3/run-ptest
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
make -C tests check-TESTS
|
||||
@@ -3,7 +3,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
|
||||
|
||||
require diffutils.inc
|
||||
|
||||
SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.xz"
|
||||
SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.xz \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
do_configure_prepend () {
|
||||
# Need to remove gettext macros with weird mix of versions
|
||||
@@ -14,3 +16,19 @@ do_configure_prepend () {
|
||||
|
||||
SRC_URI[md5sum] = "99180208ec2a82ce71f55b0d7389f1b3"
|
||||
SRC_URI[sha256sum] = "a25e89a8ab65fded1731e4186be1bb25cda967834b6df973599cdcd5abdfc19c"
|
||||
|
||||
inherit ptest
|
||||
|
||||
do_install_ptest() {
|
||||
t=${D}${PTEST_PATH}
|
||||
install -D ${S}/build-aux/test-driver $t/build-aux/test-driver
|
||||
cp -r ${S}/tests $t/
|
||||
install ${B}/tests/Makefile $t/tests/
|
||||
sed -e 's|^Makefile:|_Makefile:|' \
|
||||
-e 's|bash|sh|' \
|
||||
-e 's|^top_srcdir = \(.*\)|top_srcdir = ..\/|' \
|
||||
-e 's|^srcdir = \(.*\)|srcdir = .|' \
|
||||
-e 's|"`$(built_programs)`"|diff|' \
|
||||
-e 's|gawk|awk|g' \
|
||||
-i $t/tests/Makefile
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user