* [PATCH 0/1] diffstat: enable ptest support
@ 2014-02-11 1:18 Chong Lu
2014-02-11 1:18 ` [PATCH 1/1] " Chong Lu
0 siblings, 1 reply; 2+ messages in thread
From: Chong Lu @ 2014-02-11 1:18 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 095bb006c3dbbfbdfa05f13d8d7b50e2a5ab2af0:
bitbake: bitbake: build.py: create separate function for shell trap creation code (2014-02-09 10:01:38 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib chonglu/diffstat
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/diffstat
Chong Lu (1):
diffstat: enable ptest support
meta/recipes-devtools/diffstat/diffstat/run-ptest | 5 +++++
meta/recipes-devtools/diffstat/diffstat_1.58.bb | 10 ++++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
create mode 100644 meta/recipes-devtools/diffstat/diffstat/run-ptest
--
1.8.1.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] diffstat: enable ptest support
2014-02-11 1:18 [PATCH 0/1] diffstat: enable ptest support Chong Lu
@ 2014-02-11 1:18 ` Chong Lu
0 siblings, 0 replies; 2+ messages in thread
From: Chong Lu @ 2014-02-11 1:18 UTC (permalink / raw)
To: openembedded-core
Install diffstat test suite and run it as ptest.
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
---
meta/recipes-devtools/diffstat/diffstat/run-ptest | 5 +++++
meta/recipes-devtools/diffstat/diffstat_1.58.bb | 10 ++++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
create mode 100644 meta/recipes-devtools/diffstat/diffstat/run-ptest
diff --git a/meta/recipes-devtools/diffstat/diffstat/run-ptest b/meta/recipes-devtools/diffstat/diffstat/run-ptest
new file mode 100644
index 0000000..a936b3d
--- /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 8f73bfc..204473a 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}
+}
--
1.8.1.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-11 1:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-11 1:18 [PATCH 0/1] diffstat: enable ptest support Chong Lu
2014-02-11 1:18 ` [PATCH 1/1] " Chong Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox