diff options
Diffstat (limited to 'meta/recipes-devtools/expect')
-rwxr-xr-x | meta/recipes-devtools/expect/expect/run-ptest | 6 | ||||
-rw-r--r-- | meta/recipes-devtools/expect/expect_5.45.4.bb | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/meta/recipes-devtools/expect/expect/run-ptest b/meta/recipes-devtools/expect/expect/run-ptest new file mode 100755 index 0000000000..856c314eaf --- /dev/null +++ b/meta/recipes-devtools/expect/expect/run-ptest | |||
@@ -0,0 +1,6 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | out_put=`tclsh tests/all.tcl -verbose bpse` | ||
4 | echo | ||
5 | echo "${out_put}" | awk '/PASSED|FAILED|SKIPPED/{gsub(/PASSED/,"PASS"); gsub(/FAILED/,"FAIL"); gsub(/SKIPPED/,"SKIP"); if ($NF=="PASS"){print $NF": "$(NF-1)}else{print $NF": "$2}}' | uniq | ||
6 | |||
diff --git a/meta/recipes-devtools/expect/expect_5.45.4.bb b/meta/recipes-devtools/expect/expect_5.45.4.bb index 6cb46f334c..7b610b1ff2 100644 --- a/meta/recipes-devtools/expect/expect_5.45.4.bb +++ b/meta/recipes-devtools/expect/expect_5.45.4.bb | |||
@@ -16,7 +16,7 @@ LIC_FILES_CHKSUM = "file://license.terms;md5=fbf2de7e9102505b1439db06fc36ce5c" | |||
16 | DEPENDS += "tcl" | 16 | DEPENDS += "tcl" |
17 | RDEPENDS:${PN} = "tcl" | 17 | RDEPENDS:${PN} = "tcl" |
18 | 18 | ||
19 | inherit autotools update-alternatives | 19 | inherit autotools update-alternatives ptest |
20 | 20 | ||
21 | SRC_URI = "${SOURCEFORGE_MIRROR}/expect/Expect/${PV}/${BPN}${PV}.tar.gz \ | 21 | SRC_URI = "${SOURCEFORGE_MIRROR}/expect/Expect/${PV}/${BPN}${PV}.tar.gz \ |
22 | file://0001-configure.in.patch \ | 22 | file://0001-configure.in.patch \ |
@@ -27,6 +27,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/expect/Expect/${PV}/${BPN}${PV}.tar.gz \ | |||
27 | file://0001-exp_main_sub.c-Use-PATH_MAX-for-path.patch \ | 27 | file://0001-exp_main_sub.c-Use-PATH_MAX-for-path.patch \ |
28 | file://0001-fixline1-fix-line-1.patch \ | 28 | file://0001-fixline1-fix-line-1.patch \ |
29 | file://0001-Add-prototype-to-function-definitions.patch \ | 29 | file://0001-Add-prototype-to-function-definitions.patch \ |
30 | file://run-ptest \ | ||
30 | " | 31 | " |
31 | SRC_URI[md5sum] = "00fce8de158422f5ccd2666512329bd2" | 32 | SRC_URI[md5sum] = "00fce8de158422f5ccd2666512329bd2" |
32 | SRC_URI[sha256sum] = "49a7da83b0bdd9f46d04a04deec19c7767bb9a323e40c4781f89caf760b92c34" | 33 | SRC_URI[sha256sum] = "49a7da83b0bdd9f46d04a04deec19c7767bb9a323e40c4781f89caf760b92c34" |
@@ -44,6 +45,11 @@ do_install:append() { | |||
44 | sed -e 's|$dir|${libdir}|' -i ${D}${libdir}/expect${PV}/pkgIndex.tcl | 45 | sed -e 's|$dir|${libdir}|' -i ${D}${libdir}/expect${PV}/pkgIndex.tcl |
45 | } | 46 | } |
46 | 47 | ||
48 | do_install_ptest() { | ||
49 | install -d ${D}${PTEST_PATH} | ||
50 | cp -r ${S}/tests ${D}${PTEST_PATH} | ||
51 | } | ||
52 | |||
47 | # Apparently the public Tcl headers are only in /usr/include/tcl8.6 | 53 | # Apparently the public Tcl headers are only in /usr/include/tcl8.6 |
48 | # when building for the target and nativesdk. | 54 | # when building for the target and nativesdk. |
49 | TCL_INCLUDE_PATH = "--with-tclinclude=${STAGING_INCDIR}/tcl8.6" | 55 | TCL_INCLUDE_PATH = "--with-tclinclude=${STAGING_INCDIR}/tcl8.6" |