* [PATCH 0/1] tcl: enable ptest support
@ 2014-01-08 9:59 Chong Lu
2014-01-08 9:59 ` [PATCH 1/1] " Chong Lu
0 siblings, 1 reply; 2+ messages in thread
From: Chong Lu @ 2014-01-08 9:59 UTC (permalink / raw)
To: openembedded-core
The following changes since commit e93a345fae7c21652547bec501fcb1f3b6c6427d:
sstate: add do_package to the noexec list in setscene_depvalid (2014-01-07 13:58:32 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib chonglu/tcl
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/tcl
Chong Lu (1):
tcl: enable ptest support
meta/recipes-devtools/tcltk/tcl/run-ptest | 8 ++++++++
meta/recipes-devtools/tcltk/tcl_8.6.1.bb | 13 ++++++++++++-
2 files changed, 20 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-devtools/tcltk/tcl/run-ptest
--
1.8.1.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] tcl: enable ptest support
2014-01-08 9:59 [PATCH 0/1] tcl: enable ptest support Chong Lu
@ 2014-01-08 9:59 ` Chong Lu
0 siblings, 0 replies; 2+ messages in thread
From: Chong Lu @ 2014-01-08 9:59 UTC (permalink / raw)
To: openembedded-core
Install tcl test suite and run it as ptest.
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
---
meta/recipes-devtools/tcltk/tcl/run-ptest | 8 ++++++++
meta/recipes-devtools/tcltk/tcl_8.6.1.bb | 13 ++++++++++++-
2 files changed, 20 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-devtools/tcltk/tcl/run-ptest
diff --git a/meta/recipes-devtools/tcltk/tcl/run-ptest b/meta/recipes-devtools/tcltk/tcl/run-ptest
new file mode 100644
index 0000000..a5d6548
--- /dev/null
+++ b/meta/recipes-devtools/tcltk/tcl/run-ptest
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+for i in `ls tests/*.test |awk -F/ '{print $2}'`; \
+ do TCL_LIBRARY=library ./tcltest tests/all.tcl -file $i &>$i.tmp; \
+ grep -q "^Files with failing tests:" $i.tmp; \
+ if [ $? == 0 ]; then echo "FAIL: $i"; \
+ else echo "PASS: $i"; rm -f $i.tmp; fi; \
+done
diff --git a/meta/recipes-devtools/tcltk/tcl_8.6.1.bb b/meta/recipes-devtools/tcltk/tcl_8.6.1.bb
index c5eb205..662261b 100644
--- a/meta/recipes-devtools/tcltk/tcl_8.6.1.bb
+++ b/meta/recipes-devtools/tcltk/tcl_8.6.1.bb
@@ -20,6 +20,7 @@ SRC_URI = "${BASE_SRC_URI} \
file://no_packages.patch \
file://tcl-remove-hardcoded-install-path.patch \
file://alter-includedir.patch \
+ file://run-ptest \
"
SRC_URI[md5sum] = "aae4b701ee527c6e4e1a6f9c7399882e"
SRC_URI[sha256sum] = "16ee769248e64ba1cae6b4834fcc4e4edd7470d881410e8d58f7dd1434343514"
@@ -30,7 +31,7 @@ S = "${WORKDIR}/tcl${PV}/unix"
VER = "8.6.1"
-inherit autotools
+inherit autotools ptest
DEPENDS_class-native = ""
@@ -79,3 +80,13 @@ RDEPENDS_${PN} += "tcl-lib"
RDEPENDS_${PN}_class-native = ""
BBCLASSEXTEND = "native"
+
+do_compile_ptest() {
+ oe_runmake tcltest
+}
+
+do_install_ptest() {
+ cp ${B}/tcltest ${D}${PTEST_PATH}
+ cp -r ${S}/../library ${D}${PTEST_PATH}
+ cp -r ${S}/../tests ${D}${PTEST_PATH}
+}
--
1.8.1.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-08 10:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-08 9:59 [PATCH 0/1] tcl: enable ptest support Chong Lu
2014-01-08 9:59 ` [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