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