summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-core/libxml/libxml++-5.0/run-ptest4
-rw-r--r--meta-oe/recipes-core/libxml/libxml++-5.0_5.4.0.bb10
-rwxr-xr-xmeta-oe/recipes-core/sdbus-c++/sdbus-c++/run-ptest5
-rw-r--r--meta-oe/recipes-support/libmanette/libmanette/run-ptest10
-rw-r--r--meta-oe/recipes-support/libmanette/libmanette_0.2.13.bb8
-rw-r--r--meta-oe/recipes-support/poco/poco/0001-cppignore.lnx-Ignore-PKCS12-and-testLaunch-test.patch53
-rw-r--r--meta-oe/recipes-support/poco/poco_1.14.2.bb5
7 files changed, 44 insertions, 51 deletions
diff --git a/meta-oe/recipes-core/libxml/libxml++-5.0/run-ptest b/meta-oe/recipes-core/libxml/libxml++-5.0/run-ptest
new file mode 100644
index 0000000000..4f54f90e09
--- /dev/null
+++ b/meta-oe/recipes-core/libxml/libxml++-5.0/run-ptest
@@ -0,0 +1,4 @@
1#!/bin/sh
2for t in `ls ./*_test`; do
3 $t && echo PASS: $t || echo FAIL: $t
4done
diff --git a/meta-oe/recipes-core/libxml/libxml++-5.0_5.4.0.bb b/meta-oe/recipes-core/libxml/libxml++-5.0_5.4.0.bb
index e4fdac2c2c..cd16ec862f 100644
--- a/meta-oe/recipes-core/libxml/libxml++-5.0_5.4.0.bb
+++ b/meta-oe/recipes-core/libxml/libxml++-5.0_5.4.0.bb
@@ -11,11 +11,21 @@ DEPENDS = "libxml2 glibmm"
11GNOMEBN = "libxml++" 11GNOMEBN = "libxml++"
12inherit gnomebase ptest 12inherit gnomebase ptest
13 13
14SRC_URI += "file://run-ptest"
14S = "${UNPACKDIR}/libxml++-${PV}" 15S = "${UNPACKDIR}/libxml++-${PV}"
15 16
16SRC_URI[archive.sha256sum] = "e9a23c436686a94698d2138e6bcbaf849121d63bfa0f50dc34fefbfd79566848" 17SRC_URI[archive.sha256sum] = "e9a23c436686a94698d2138e6bcbaf849121d63bfa0f50dc34fefbfd79566848"
17 18
18UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)" 19UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)"
19 20
21PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
22PACKAGECONFIG[tests] = "-Dbuild-tests=true, -Dbuild-tests=false"
23
24do_install_ptest(){
25 for t in `ls ${B}/tests/*_test`; do
26 install $t ${D}${PTEST_PATH}/
27 done
28}
29
20FILES:${PN}-doc += "${datadir}/devhelp" 30FILES:${PN}-doc += "${datadir}/devhelp"
21FILES:${PN}-dev += "${libdir}/libxml++-${@gnome_verdir("${PV}")}/include/libxml++config.h" 31FILES:${PN}-dev += "${libdir}/libxml++-${@gnome_verdir("${PV}")}/include/libxml++config.h"
diff --git a/meta-oe/recipes-core/sdbus-c++/sdbus-c++/run-ptest b/meta-oe/recipes-core/sdbus-c++/sdbus-c++/run-ptest
index 5e285b39e0..845ba7d8c6 100755
--- a/meta-oe/recipes-core/sdbus-c++/sdbus-c++/run-ptest
+++ b/meta-oe/recipes-core/sdbus-c++/sdbus-c++/run-ptest
@@ -1,6 +1,11 @@
1#!/bin/sh 1#!/bin/sh
2set -e 2set -e
3 3
4# the integration tests require some machine id
5if [ ! -f /etc/machine-id ]; then
6 echo 12345678901234567890123456789012 > /etc/machine-id
7fi
8
4./sdbus-c++-unit-tests 2>&1 && echo "PASS: sdbus-c++-unit-tests" || echo "FAIL: sdbus-c++-unit-tests" 9./sdbus-c++-unit-tests 2>&1 && echo "PASS: sdbus-c++-unit-tests" || echo "FAIL: sdbus-c++-unit-tests"
5 10
6./sdbus-c++-integration-tests 2>&1 && echo "PASS: sdbus-c++-integration-tests" || echo "FAIL: sdbus-c++-integration-tests" 11./sdbus-c++-integration-tests 2>&1 && echo "PASS: sdbus-c++-integration-tests" || echo "FAIL: sdbus-c++-integration-tests"
diff --git a/meta-oe/recipes-support/libmanette/libmanette/run-ptest b/meta-oe/recipes-support/libmanette/libmanette/run-ptest
new file mode 100644
index 0000000000..3c937825d1
--- /dev/null
+++ b/meta-oe/recipes-support/libmanette/libmanette/run-ptest
@@ -0,0 +1,10 @@
1#!/bin/sh
2if [ -d /usr/libexec/installed-tests/manette-0.2 ]; then
3 cd /usr/libexec/installed-tests/manette-0.2
4 for t in ./*; do
5 $t && echo PASS: $t || echo FAIL: $t
6 done
7 cd -
8else
9 echo FAIL: no tests found
10fi
diff --git a/meta-oe/recipes-support/libmanette/libmanette_0.2.13.bb b/meta-oe/recipes-support/libmanette/libmanette_0.2.13.bb
index 2825b8af98..ce12760f54 100644
--- a/meta-oe/recipes-support/libmanette/libmanette_0.2.13.bb
+++ b/meta-oe/recipes-support/libmanette/libmanette_0.2.13.bb
@@ -7,10 +7,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
7 7
8DEPENDS = "libevdev libgudev hidapi" 8DEPENDS = "libevdev libgudev hidapi"
9 9
10SRC_URI = "https://download.gnome.org/sources/libmanette/0.2/libmanette-${PV}.tar.xz" 10SRC_URI = "https://download.gnome.org/sources/libmanette/0.2/libmanette-${PV}.tar.xz \
11 file://run-ptest"
11SRC_URI[sha256sum] = "287cc2fde0de092919366af757d85e7b3a0248eb1b395344726e97955a77d8ae" 12SRC_URI[sha256sum] = "287cc2fde0de092919366af757d85e7b3a0248eb1b395344726e97955a77d8ae"
12 13
13inherit meson pkgconfig gobject-introspection ptest vala 14inherit meson pkgconfig gobject-introspection ptest vala
14 15
15FILES:${PN}-ptest =+ "${bindir}/manette-test"
16FILES:${PN}-dev =+ "${libdir}/girepository-1.0" 16FILES:${PN}-dev =+ "${libdir}/girepository-1.0"
17FILES:${PN}-ptest += "${libexecdir}/installed-tests"
18
19PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'test', '', d)}"
20PACKAGECONFIG[test] = "-Dbuild-tests=true -Dinstall-tests=true,-Dbuild-tests=false -Dinstall-tests=false"
diff --git a/meta-oe/recipes-support/poco/poco/0001-cppignore.lnx-Ignore-PKCS12-and-testLaunch-test.patch b/meta-oe/recipes-support/poco/poco/0001-cppignore.lnx-Ignore-PKCS12-and-testLaunch-test.patch
index 1d4eb9b831..8575797e89 100644
--- a/meta-oe/recipes-support/poco/poco/0001-cppignore.lnx-Ignore-PKCS12-and-testLaunch-test.patch
+++ b/meta-oe/recipes-support/poco/poco/0001-cppignore.lnx-Ignore-PKCS12-and-testLaunch-test.patch
@@ -8,48 +8,14 @@ Content-Transfer-Encoding: 8bit
8 8
9These tests fail on Linux 9These tests fail on Linux
10 10
11There were 4 failures:
12 1: N7CppUnit10TestCallerI11ProcessTestEE.testLaunch
13 "rc == 3"
14 in "/usr/src/debug/poco/1.12.4-r0/Foundation/testsuite/src/ProcessTest.cpp", line 79
15 2: N7CppUnit10TestCallerI11ProcessTestEE.testLaunchRedirectIn
16 "rc == 100"
17 in "/usr/src/debug/poco/1.12.4-r0/Foundation/testsuite/src/ProcessTest.cpp", line 106
18 3: N7CppUnit10TestCallerI11ProcessTestEE.testLaunchRedirectOut
19 "s == "Hello, world!""
20 in "/usr/src/debug/poco/1.12.4-r0/Foundation/testsuite/src/ProcessTest.cpp", line 134
21 4: N7CppUnit10TestCallerI11ProcessTestEE.testLaunchEnv
22 "s == "test""
23 in "/usr/src/debug/poco/1.12.4-r0/Foundation/testsuite/src/ProcessTest.cpp", line 166
24
25 There were 4 errors:-
26 1: N7CppUnit10TestCallerI7EVPTestEE.testRSAEVPKeyFromPKCS12
27 │ │ "N4Poco17NotFoundExceptionE:
28 Not found: POCO_BASE"
29 │ │ in "<unknown>", line -1
30 2: N7CppUnit10TestCallerI19PKCS12ContainerTestEE.testFullPKCS12
31 │ │ "N4Poco17NotFoundExceptionE:
32 Not found: POCO_BASE"
33 │ │ in "<unknown>", line -1
34 3: N7CppUnit10TestCallerI19PKCS12ContainerTestEE.testCertsOnlyPKCS12
35 │ │ "N4Poco17NotFoundExceptionE:
36 Not found: POCO_BASE"
37 │ │ in "<unknown>", line -1
38 4: N7CppUnit10TestCallerI19PKCS12ContainerTestEE.testPEMReadWrite
39 │ │ "N4Poco17NotFoundExceptionE:
40 Not found: POCO_BASE"
41 │ │ in "<unknown>", line -1
42
43There was 1 error:
44 1: CppUnit::TestCaller<ProcessRunnerTest>.testProcessRunner
45 "Poco::TimeoutException:
46Timeout: ProcessRunner::checkTimeout(): waiting for PID file"
47 in "<unknown>", line -1
48
49Upstream-Status: Inappropriate [OE specific] 11Upstream-Status: Inappropriate [OE specific]
50Signed-off-by: Khem Raj <raj.khem@gmail.com> 12Signed-off-by: Khem Raj <raj.khem@gmail.com>
51Signed-off-by: Patrick Wicki <patrick.wicki@siemens.com> 13Signed-off-by: Patrick Wicki <patrick.wicki@siemens.com>
52Signed-off-by: Peter Marko <peter.marko@siemens.com> 14Signed-off-by: Peter Marko <peter.marko@siemens.com>
15
16Updated comment and content after fixing some tests.
17Left only MongoDBTest.testArray on ignore list, untested.
18
53--- 19---
54 cppignore.lnx | 9 +++++++++ 20 cppignore.lnx | 9 +++++++++
55 1 file changed, 9 insertions(+) 21 1 file changed, 9 insertions(+)
@@ -58,17 +24,8 @@ diff --git a/cppignore.lnx b/cppignore.lnx
58index b3288d474..9aad48ca5 100644 24index b3288d474..9aad48ca5 100644
59--- a/cppignore.lnx 25--- a/cppignore.lnx
60+++ b/cppignore.lnx 26+++ b/cppignore.lnx
61@@ -30,3 +30,13 @@ CppUnit::TestCaller<HTTPSClientSessionTest>.testProxy 27@@ -30,3 +30,4 @@ CppUnit::TestCaller<HTTPSClientSessionTest>.testProxy
62 CppUnit::TestCaller<HTTPSStreamFactoryTest>.testProxy 28 CppUnit::TestCaller<HTTPSStreamFactoryTest>.testProxy
63 CppUnit::TestCaller<DNSTest>.testHostByAddress 29 CppUnit::TestCaller<DNSTest>.testHostByAddress
64 CppUnit::TestCaller<DNSTest>.testHostByName 30 CppUnit::TestCaller<DNSTest>.testHostByName
65+CppUnit::TestCaller<ProcessTest>.testLaunch
66+CppUnit::TestCaller<ProcessTest>.testLaunchRedirectIn
67+CppUnit::TestCaller<ProcessTest>.testLaunchRedirectOut
68+CppUnit::TestCaller<ProcessTest>.testLaunchEnv
69+CppUnit::TestCaller<EVPTest>.testRSAEVPKeyFromPKCS12
70+CppUnit::TestCaller<PKCS12ContainerTest>.testFullPKCS12
71+CppUnit::TestCaller<PKCS12ContainerTest>.testCertsOnlyPKCS12
72+CppUnit::TestCaller<PKCS12ContainerTest>.testPEMReadWrite
73+CppUnit::TestCaller<MongoDBTest>.testArray 31+CppUnit::TestCaller<MongoDBTest>.testArray
74+CppUnit::TestCaller<ProcessRunnerTest>.testProcessRunner
diff --git a/meta-oe/recipes-support/poco/poco_1.14.2.bb b/meta-oe/recipes-support/poco/poco_1.14.2.bb
index 9cdc9e325c..8f81fac77b 100644
--- a/meta-oe/recipes-support/poco/poco_1.14.2.bb
+++ b/meta-oe/recipes-support/poco/poco_1.14.2.bb
@@ -108,13 +108,15 @@ do_install_ptest () {
108 if ${@bb.utils.contains('PACKAGECONFIG', 'DataPostgreSQL', 'true', 'false', d)}; then 108 if ${@bb.utils.contains('PACKAGECONFIG', 'DataPostgreSQL', 'true', 'false', d)}; then
109 cp -f ${B}/lib/libPocoDataTest.so* ${D}${libdir} 109 cp -f ${B}/lib/libPocoDataTest.so* ${D}${libdir}
110 fi 110 fi
111 cp -rf ${B}/*/testsuite/data ${D}${PTEST_PATH}/bin/ 111 cp -rf ${S}/*/testsuite/data ${D}${PTEST_PATH}/bin/
112 find "${D}${PTEST_PATH}" -executable -exec chrpath -d {} \; 112 find "${D}${PTEST_PATH}" -executable -exec chrpath -d {} \;
113 rm -f ${D}${PTEST_PATH}/testrunners 113 rm -f ${D}${PTEST_PATH}/testrunners
114 for f in ${D}${PTEST_PATH}/bin/*-testrunner; do 114 for f in ${D}${PTEST_PATH}/bin/*-testrunner; do
115 echo `basename $f` >> ${D}${PTEST_PATH}/testrunners 115 echo `basename $f` >> ${D}${PTEST_PATH}/testrunners
116 done 116 done
117 install -Dm 0644 ${S}/cppignore.lnx ${D}${PTEST_PATH}/cppignore.lnx 117 install -Dm 0644 ${S}/cppignore.lnx ${D}${PTEST_PATH}/cppignore.lnx
118 install ${B}/bin/TestLibrary.so ${D}${libdir}
119 install -D ${B}/bin/TestApp ${D}${bindir}/TestApp
118} 120}
119 121
120PACKAGES_DYNAMIC = "poco-.*" 122PACKAGES_DYNAMIC = "poco-.*"
@@ -128,6 +130,7 @@ FILES:${PN}-cppunit += "${libdir}/libCppUnit.so*"
128ALLOW_EMPTY:${PN}-cppunit = "1" 130ALLOW_EMPTY:${PN}-cppunit = "1"
129FILES:${PN}-datatest += "${libdir}/libPocoDataTest.so*" 131FILES:${PN}-datatest += "${libdir}/libPocoDataTest.so*"
130ALLOW_EMPTY:${PN}-datatest = "1" 132ALLOW_EMPTY:${PN}-datatest = "1"
133FILES:${PN}-ptest += "${bindir}/TestApp ${libdir}/TestLibrary.so"
131 134
132RDEPENDS:${PN}-ptest += "${PN}-cppunit ${PN}-datatest" 135RDEPENDS:${PN}-ptest += "${PN}-cppunit ${PN}-datatest"
133RDEPENDS:${PN}-ptest += "${@bb.utils.contains('PACKAGECONFIG', 'MongoDB', 'mongodb', '', d)}" 136RDEPENDS:${PN}-ptest += "${@bb.utils.contains('PACKAGECONFIG', 'MongoDB', 'mongodb', '', d)}"