diff options
Diffstat (limited to 'meta/recipes-devtools/tcltk')
-rw-r--r-- | meta/recipes-devtools/tcltk/tcl/run-ptest | 8 | ||||
-rw-r--r-- | meta/recipes-devtools/tcltk/tcl_8.6.1.bb | 13 |
2 files changed, 20 insertions, 1 deletions
diff --git a/meta/recipes-devtools/tcltk/tcl/run-ptest b/meta/recipes-devtools/tcltk/tcl/run-ptest new file mode 100644 index 0000000000..a5d6548d2a --- /dev/null +++ b/meta/recipes-devtools/tcltk/tcl/run-ptest | |||
@@ -0,0 +1,8 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | for i in `ls tests/*.test |awk -F/ '{print $2}'`; \ | ||
4 | do TCL_LIBRARY=library ./tcltest tests/all.tcl -file $i &>$i.tmp; \ | ||
5 | grep -q "^Files with failing tests:" $i.tmp; \ | ||
6 | if [ $? == 0 ]; then echo "FAIL: $i"; \ | ||
7 | else echo "PASS: $i"; rm -f $i.tmp; fi; \ | ||
8 | done | ||
diff --git a/meta/recipes-devtools/tcltk/tcl_8.6.1.bb b/meta/recipes-devtools/tcltk/tcl_8.6.1.bb index c5eb20581b..662261b1cb 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} \ | |||
20 | file://no_packages.patch \ | 20 | file://no_packages.patch \ |
21 | file://tcl-remove-hardcoded-install-path.patch \ | 21 | file://tcl-remove-hardcoded-install-path.patch \ |
22 | file://alter-includedir.patch \ | 22 | file://alter-includedir.patch \ |
23 | file://run-ptest \ | ||
23 | " | 24 | " |
24 | SRC_URI[md5sum] = "aae4b701ee527c6e4e1a6f9c7399882e" | 25 | SRC_URI[md5sum] = "aae4b701ee527c6e4e1a6f9c7399882e" |
25 | SRC_URI[sha256sum] = "16ee769248e64ba1cae6b4834fcc4e4edd7470d881410e8d58f7dd1434343514" | 26 | SRC_URI[sha256sum] = "16ee769248e64ba1cae6b4834fcc4e4edd7470d881410e8d58f7dd1434343514" |
@@ -30,7 +31,7 @@ S = "${WORKDIR}/tcl${PV}/unix" | |||
30 | 31 | ||
31 | VER = "8.6.1" | 32 | VER = "8.6.1" |
32 | 33 | ||
33 | inherit autotools | 34 | inherit autotools ptest |
34 | 35 | ||
35 | DEPENDS_class-native = "" | 36 | DEPENDS_class-native = "" |
36 | 37 | ||
@@ -79,3 +80,13 @@ RDEPENDS_${PN} += "tcl-lib" | |||
79 | RDEPENDS_${PN}_class-native = "" | 80 | RDEPENDS_${PN}_class-native = "" |
80 | 81 | ||
81 | BBCLASSEXTEND = "native" | 82 | BBCLASSEXTEND = "native" |
83 | |||
84 | do_compile_ptest() { | ||
85 | oe_runmake tcltest | ||
86 | } | ||
87 | |||
88 | do_install_ptest() { | ||
89 | cp ${B}/tcltest ${D}${PTEST_PATH} | ||
90 | cp -r ${S}/../library ${D}${PTEST_PATH} | ||
91 | cp -r ${S}/../tests ${D}${PTEST_PATH} | ||
92 | } | ||