diff options
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 | ||
2 | for t in `ls ./*_test`; do | ||
3 | $t && echo PASS: $t || echo FAIL: $t | ||
4 | done | ||
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" | |||
11 | GNOMEBN = "libxml++" | 11 | GNOMEBN = "libxml++" |
12 | inherit gnomebase ptest | 12 | inherit gnomebase ptest |
13 | 13 | ||
14 | SRC_URI += "file://run-ptest" | ||
14 | S = "${UNPACKDIR}/libxml++-${PV}" | 15 | S = "${UNPACKDIR}/libxml++-${PV}" |
15 | 16 | ||
16 | SRC_URI[archive.sha256sum] = "e9a23c436686a94698d2138e6bcbaf849121d63bfa0f50dc34fefbfd79566848" | 17 | SRC_URI[archive.sha256sum] = "e9a23c436686a94698d2138e6bcbaf849121d63bfa0f50dc34fefbfd79566848" |
17 | 18 | ||
18 | UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)" | 19 | UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)" |
19 | 20 | ||
21 | PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}" | ||
22 | PACKAGECONFIG[tests] = "-Dbuild-tests=true, -Dbuild-tests=false" | ||
23 | |||
24 | do_install_ptest(){ | ||
25 | for t in `ls ${B}/tests/*_test`; do | ||
26 | install $t ${D}${PTEST_PATH}/ | ||
27 | done | ||
28 | } | ||
29 | |||
20 | FILES:${PN}-doc += "${datadir}/devhelp" | 30 | FILES:${PN}-doc += "${datadir}/devhelp" |
21 | FILES:${PN}-dev += "${libdir}/libxml++-${@gnome_verdir("${PV}")}/include/libxml++config.h" | 31 | FILES:${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 |
2 | set -e | 2 | set -e |
3 | 3 | ||
4 | # the integration tests require some machine id | ||
5 | if [ ! -f /etc/machine-id ]; then | ||
6 | echo 12345678901234567890123456789012 > /etc/machine-id | ||
7 | fi | ||
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 | ||
2 | if [ -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 - | ||
8 | else | ||
9 | echo FAIL: no tests found | ||
10 | fi | ||
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 | ||
8 | DEPENDS = "libevdev libgudev hidapi" | 8 | DEPENDS = "libevdev libgudev hidapi" |
9 | 9 | ||
10 | SRC_URI = "https://download.gnome.org/sources/libmanette/0.2/libmanette-${PV}.tar.xz" | 10 | SRC_URI = "https://download.gnome.org/sources/libmanette/0.2/libmanette-${PV}.tar.xz \ |
11 | file://run-ptest" | ||
11 | SRC_URI[sha256sum] = "287cc2fde0de092919366af757d85e7b3a0248eb1b395344726e97955a77d8ae" | 12 | SRC_URI[sha256sum] = "287cc2fde0de092919366af757d85e7b3a0248eb1b395344726e97955a77d8ae" |
12 | 13 | ||
13 | inherit meson pkgconfig gobject-introspection ptest vala | 14 | inherit meson pkgconfig gobject-introspection ptest vala |
14 | 15 | ||
15 | FILES:${PN}-ptest =+ "${bindir}/manette-test" | ||
16 | FILES:${PN}-dev =+ "${libdir}/girepository-1.0" | 16 | FILES:${PN}-dev =+ "${libdir}/girepository-1.0" |
17 | FILES:${PN}-ptest += "${libexecdir}/installed-tests" | ||
18 | |||
19 | PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'test', '', d)}" | ||
20 | PACKAGECONFIG[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 | ||
9 | These tests fail on Linux | 9 | These tests fail on Linux |
10 | 10 | ||
11 | There 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 | |||
43 | There was 1 error: | ||
44 | 1: CppUnit::TestCaller<ProcessRunnerTest>.testProcessRunner | ||
45 | "Poco::TimeoutException: | ||
46 | Timeout: ProcessRunner::checkTimeout(): waiting for PID file" | ||
47 | in "<unknown>", line -1 | ||
48 | |||
49 | Upstream-Status: Inappropriate [OE specific] | 11 | Upstream-Status: Inappropriate [OE specific] |
50 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
51 | Signed-off-by: Patrick Wicki <patrick.wicki@siemens.com> | 13 | Signed-off-by: Patrick Wicki <patrick.wicki@siemens.com> |
52 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | 14 | Signed-off-by: Peter Marko <peter.marko@siemens.com> |
15 | |||
16 | Updated comment and content after fixing some tests. | ||
17 | Left 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 | |||
58 | index b3288d474..9aad48ca5 100644 | 24 | index 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 | ||
120 | PACKAGES_DYNAMIC = "poco-.*" | 122 | PACKAGES_DYNAMIC = "poco-.*" |
@@ -128,6 +130,7 @@ FILES:${PN}-cppunit += "${libdir}/libCppUnit.so*" | |||
128 | ALLOW_EMPTY:${PN}-cppunit = "1" | 130 | ALLOW_EMPTY:${PN}-cppunit = "1" |
129 | FILES:${PN}-datatest += "${libdir}/libPocoDataTest.so*" | 131 | FILES:${PN}-datatest += "${libdir}/libPocoDataTest.so*" |
130 | ALLOW_EMPTY:${PN}-datatest = "1" | 132 | ALLOW_EMPTY:${PN}-datatest = "1" |
133 | FILES:${PN}-ptest += "${bindir}/TestApp ${libdir}/TestLibrary.so" | ||
131 | 134 | ||
132 | RDEPENDS:${PN}-ptest += "${PN}-cppunit ${PN}-datatest" | 135 | RDEPENDS:${PN}-ptest += "${PN}-cppunit ${PN}-datatest" |
133 | RDEPENDS:${PN}-ptest += "${@bb.utils.contains('PACKAGECONFIG', 'MongoDB', 'mongodb', '', d)}" | 136 | RDEPENDS:${PN}-ptest += "${@bb.utils.contains('PACKAGECONFIG', 'MongoDB', 'mongodb', '', d)}" |