* [PATCH 0/1] gawk: enable ptest support
@ 2014-01-22 4:55 Chong Lu
2014-01-22 4:55 ` [PATCH 1/1] " Chong Lu
0 siblings, 1 reply; 2+ messages in thread
From: Chong Lu @ 2014-01-22 4:55 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 6e7047434fc1570146ebc94254412b99b1c4cab4:
poky.ent: Fixed broken OE_LISTS_URL. (2014-01-21 21:58:03 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib chonglu/gawk
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/gawk
Chong Lu (1):
gawk: enable ptest support
meta/recipes-extended/gawk/gawk-4.0.2/run-ptest | 10 ++++++++++
meta/recipes-extended/gawk/gawk_4.0.2.bb | 13 ++++++++++++-
2 files changed, 22 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-extended/gawk/gawk-4.0.2/run-ptest
--
1.8.1.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] gawk: enable ptest support
2014-01-22 4:55 [PATCH 0/1] gawk: enable ptest support Chong Lu
@ 2014-01-22 4:55 ` Chong Lu
0 siblings, 0 replies; 2+ messages in thread
From: Chong Lu @ 2014-01-22 4:55 UTC (permalink / raw)
To: openembedded-core
Install gawk test suite and run it as ptest.
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
---
meta/recipes-extended/gawk/gawk-4.0.2/run-ptest | 10 ++++++++++
meta/recipes-extended/gawk/gawk_4.0.2.bb | 13 ++++++++++++-
2 files changed, 22 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-extended/gawk/gawk-4.0.2/run-ptest
diff --git a/meta/recipes-extended/gawk/gawk-4.0.2/run-ptest b/meta/recipes-extended/gawk/gawk-4.0.2/run-ptest
new file mode 100644
index 0000000..7d214ea
--- /dev/null
+++ b/meta/recipes-extended/gawk/gawk-4.0.2/run-ptest
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+cd test
+for i in `grep -vE "@|^$|#|Gt-dummy" Maketests |awk -F: '{print $1}'`; \
+ do LC_ALL=${GAWKLOCALE:-C} LANG=${GAWKLOCALE:-C} srcdir=`pwd` AWK=gawk CMP=cmp \
+ make -f Maketests $i &>$i.tmp; \
+ grep -q "Error" $i.tmp; \
+ if [ $? == 0 ]; then echo "FAIL: $i"; \
+ else echo "PASS: $i"; rm -f $i.tmp; fi; \
+done
diff --git a/meta/recipes-extended/gawk/gawk_4.0.2.bb b/meta/recipes-extended/gawk/gawk_4.0.2.bb
index 424b6b0..eb86af3 100644
--- a/meta/recipes-extended/gawk/gawk_4.0.2.bb
+++ b/meta/recipes-extended/gawk/gawk_4.0.2.bb
@@ -16,7 +16,9 @@ DEPENDS += "readline"
RDEPENDS_gawk += "gawk-common"
RDEPENDS_pgawk += "gawk-common"
-SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz"
+SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz \
+ file://run-ptest \
+"
SRC_URI[md5sum] = "4d505dc2c9f1eb3e9f8d6cac87d4bd1a"
SRC_URI[sha256sum] = "6e0de117c3713aa8d7fa347fc9fd645b10038ae49d8cf947d8c1d51cbb76141a"
@@ -39,3 +41,12 @@ do_install_append() {
# remove the link since we don't package it
rm ${D}${bindir}/awk
}
+
+inherit ptest
+
+do_install_ptest() {
+ mkdir ${D}${PTEST_PATH}/test
+ for i in `grep -vE "@|^$|#|Gt-dummy" ${S}/test/Maketests |awk -F: '{print $1}'` Maketests; \
+ do cp ${S}/test/$i* ${D}${PTEST_PATH}/test; \
+ done
+}
--
1.8.1.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-22 4:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-22 4:55 [PATCH 0/1] gawk: enable ptest support Chong Lu
2014-01-22 4:55 ` [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