blob: b9a54fea54827b54e7902d159036a39df7feedd5 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001LICENSE = "GPLv3+"
2LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
3
4require diffutils.inc
5
6SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.xz \
7 file://run-ptest \
Brad Bishop79641f22019-09-10 07:20:22 -04008 file://0001-Skip-strip-trailing-cr-test-case.patch \
Andrew Geisslerc926e172021-05-07 16:11:35 -05009 file://0001-c-stack-stop-using-SIGSTKSZ.patch \
Brad Bishop19323692019-04-05 15:28:33 -040010"
11
12SRC_URI[md5sum] = "4824adc0e95dbbf11dfbdfaad6a1e461"
13SRC_URI[sha256sum] = "b3a7a6221c3dc916085f0d205abf6b8e1ba443d4dd965118da364a1dc1cb3a26"
14
15EXTRA_OECONF += "ac_cv_path_PR_PROGRAM=${bindir}/pr --without-libsigsegv-prefix"
16
17# Fix "Argument list too long" error when len(TMPDIR) = 410
18acpaths = "-I ./m4"
19
20inherit ptest
21
Brad Bishop79641f22019-09-10 07:20:22 -040022RDEPENDS_${PN}-ptest += "make perl"
Brad Bishop19323692019-04-05 15:28:33 -040023
24do_install_ptest() {
25 t=${D}${PTEST_PATH}
26 install -D ${S}/build-aux/test-driver $t/build-aux/test-driver
27 cp -r ${S}/tests $t/
28 install ${B}/tests/Makefile $t/tests/
29 sed -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
30 -e 's|${DEBUG_PREFIX_MAP}||g' \
31 -e 's:${HOSTTOOLS_DIR}/::g' \
32 -e 's:${RECIPE_SYSROOT_NATIVE}::g' \
33 -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
34 -e 's|^Makefile:|_Makefile:|' \
35 -e 's|bash|sh|' \
36 -e 's|^top_srcdir = \(.*\)|top_srcdir = ..\/|' \
37 -e 's|^srcdir = \(.*\)|srcdir = .|' \
38 -e 's|"`$(built_programs)`"|diff|' \
39 -e 's|gawk|awk|g' \
40 -i $t/tests/Makefile
41}