diff options
-rw-r--r-- | meta/recipes-extended/diffutils/diffutils-3.3/run-ptest | 3 | ||||
-rw-r--r-- | meta/recipes-extended/diffutils/diffutils_3.3.bb | 20 |
2 files changed, 22 insertions, 1 deletions
diff --git a/meta/recipes-extended/diffutils/diffutils-3.3/run-ptest b/meta/recipes-extended/diffutils/diffutils-3.3/run-ptest new file mode 100644 index 0000000000..695c5e8a7b --- /dev/null +++ b/meta/recipes-extended/diffutils/diffutils-3.3/run-ptest | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | make -C tests check-TESTS | ||
diff --git a/meta/recipes-extended/diffutils/diffutils_3.3.bb b/meta/recipes-extended/diffutils/diffutils_3.3.bb index 7a95c1ab43..a467f20aa4 100644 --- a/meta/recipes-extended/diffutils/diffutils_3.3.bb +++ b/meta/recipes-extended/diffutils/diffutils_3.3.bb | |||
@@ -3,7 +3,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | |||
3 | 3 | ||
4 | require diffutils.inc | 4 | require diffutils.inc |
5 | 5 | ||
6 | SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.xz" | 6 | SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.xz \ |
7 | file://run-ptest \ | ||
8 | " | ||
7 | 9 | ||
8 | do_configure_prepend () { | 10 | do_configure_prepend () { |
9 | # Need to remove gettext macros with weird mix of versions | 11 | # Need to remove gettext macros with weird mix of versions |
@@ -14,3 +16,19 @@ do_configure_prepend () { | |||
14 | 16 | ||
15 | SRC_URI[md5sum] = "99180208ec2a82ce71f55b0d7389f1b3" | 17 | SRC_URI[md5sum] = "99180208ec2a82ce71f55b0d7389f1b3" |
16 | SRC_URI[sha256sum] = "a25e89a8ab65fded1731e4186be1bb25cda967834b6df973599cdcd5abdfc19c" | 18 | SRC_URI[sha256sum] = "a25e89a8ab65fded1731e4186be1bb25cda967834b6df973599cdcd5abdfc19c" |
19 | |||
20 | inherit ptest | ||
21 | |||
22 | do_install_ptest() { | ||
23 | t=${D}${PTEST_PATH} | ||
24 | install -D ${S}/build-aux/test-driver $t/build-aux/test-driver | ||
25 | cp -r ${S}/tests $t/ | ||
26 | install ${B}/tests/Makefile $t/tests/ | ||
27 | sed -e 's|^Makefile:|_Makefile:|' \ | ||
28 | -e 's|bash|sh|' \ | ||
29 | -e 's|^top_srcdir = \(.*\)|top_srcdir = ..\/|' \ | ||
30 | -e 's|^srcdir = \(.*\)|srcdir = .|' \ | ||
31 | -e 's|"`$(built_programs)`"|diff|' \ | ||
32 | -e 's|gawk|awk|g' \ | ||
33 | -i $t/tests/Makefile | ||
34 | } | ||