diff options
author | Chong Lu <Chong.Lu@windriver.com> | 2014-02-11 09:18:40 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-17 15:27:55 +0000 |
commit | 63cf8ab1ffdb04278aeb28b6ffce22ff7b272e29 (patch) | |
tree | edc2ae2e2960c61c2744ab00949e8df28ac2f923 | |
parent | 4395504e5f2af16e108a67962ab7cbcab26aa444 (diff) | |
download | openembedded-core-contrib-63cf8ab1ffdb04278aeb28b6ffce22ff7b272e29.tar.gz |
diffstat: enable ptest support
Install diffstat test suite and run it as ptest.
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
-rw-r--r-- | meta/recipes-devtools/diffstat/diffstat/run-ptest | 5 | ||||
-rw-r--r-- | meta/recipes-devtools/diffstat/diffstat_1.58.bb | 10 |
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 00000000000..a936b3d3fe7 --- /dev/null +++ b/meta/recipes-devtools/diffstat/diffstat/run-ptest @@ -0,0 +1,5 @@ +#!/bin/sh + +./testing/run_test.sh ./testing/case*.pat |sed \ + -e 's|** ok|PASS|' \ + -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 8f73bfc5f95..204473a04ac 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 SRC_URI = "ftp://invisible-island.net/diffstat/diffstat-${PV}.tgz \ file://dirfix.patch \ - file://aclocal.patch" + file://aclocal.patch \ + file://run-ptest \ +" SRC_URI[md5sum] = "6d6e13f7dcfe4db5da65c5175260ea47" SRC_URI[sha256sum] = "fad5135199c3b9aea132c5d45874248f4ce0ff35f61abb8d03c3b90258713793" S = "${WORKDIR}/diffstat-${PV}" -inherit autotools gettext +inherit autotools gettext ptest do_configure () { if [ ! -e ${S}/acinclude.m4 ]; then @@ -24,3 +26,7 @@ do_configure () { fi autotools_do_configure } + +do_install_ptest() { + cp -r ${S}/testing ${D}${PTEST_PATH} +} |