summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/diffstat
diff options
context:
space:
mode:
authorChong Lu <Chong.Lu@windriver.com>2014-02-11 09:18:40 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-17 15:28:58 +0000
commitef15760e95943720ff88a938ab3b16728765bfe5 (patch)
treecff816402bc8ac365f2b7883b4ca41c7a6912757 /meta/recipes-devtools/diffstat
parent0f03282c6a70f0a33809c9c8ba4e64ea43e754c7 (diff)
downloadpoky-ef15760e95943720ff88a938ab3b16728765bfe5.tar.gz
diffstat: enable ptest support
Install diffstat test suite and run it as ptest. (From OE-Core rev: 63cf8ab1ffdb04278aeb28b6ffce22ff7b272e29) 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>
Diffstat (limited to 'meta/recipes-devtools/diffstat')
-rw-r--r--meta/recipes-devtools/diffstat/diffstat/run-ptest5
-rw-r--r--meta/recipes-devtools/diffstat/diffstat_1.58.bb10
2 files changed, 13 insertions, 2 deletions
diff --git a/meta/recipes-devtools/diffstat/diffstat/run-ptest b/meta/recipes-devtools/diffstat/diffstat/run-ptest
new file mode 100644
index 0000000000..a936b3d3fe
--- /dev/null
+++ b/meta/recipes-devtools/diffstat/diffstat/run-ptest
@@ -0,0 +1,5 @@
1#!/bin/sh
2
3./testing/run_test.sh ./testing/case*.pat |sed \
4 -e 's|** ok|PASS|' \
5 -e 's|?? fail|FAIL|'
diff --git a/meta/recipes-devtools/diffstat/diffstat_1.58.bb b/meta/recipes-devtools/diffstat/diffstat_1.58.bb
index 8f73bfc5f9..204473a04a 100644
--- a/meta/recipes-devtools/diffstat/diffstat_1.58.bb
+++ b/meta/recipes-devtools/diffstat/diffstat_1.58.bb
@@ -9,14 +9,16 @@ LIC_FILES_CHKSUM = "file://install-sh;endline=42;md5=b3549726c1022bee09c174c72a0
9 9
10SRC_URI = "ftp://invisible-island.net/diffstat/diffstat-${PV}.tgz \ 10SRC_URI = "ftp://invisible-island.net/diffstat/diffstat-${PV}.tgz \
11 file://dirfix.patch \ 11 file://dirfix.patch \
12 file://aclocal.patch" 12 file://aclocal.patch \
13 file://run-ptest \
14"
13 15
14SRC_URI[md5sum] = "6d6e13f7dcfe4db5da65c5175260ea47" 16SRC_URI[md5sum] = "6d6e13f7dcfe4db5da65c5175260ea47"
15SRC_URI[sha256sum] = "fad5135199c3b9aea132c5d45874248f4ce0ff35f61abb8d03c3b90258713793" 17SRC_URI[sha256sum] = "fad5135199c3b9aea132c5d45874248f4ce0ff35f61abb8d03c3b90258713793"
16 18
17S = "${WORKDIR}/diffstat-${PV}" 19S = "${WORKDIR}/diffstat-${PV}"
18 20
19inherit autotools gettext 21inherit autotools gettext ptest
20 22
21do_configure () { 23do_configure () {
22 if [ ! -e ${S}/acinclude.m4 ]; then 24 if [ ! -e ${S}/acinclude.m4 ]; then
@@ -24,3 +26,7 @@ do_configure () {
24 fi 26 fi
25 autotools_do_configure 27 autotools_do_configure
26} 28}
29
30do_install_ptest() {
31 cp -r ${S}/testing ${D}${PTEST_PATH}
32}