diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-10-18 20:51:50 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-10-18 12:01:55 -0700 |
| commit | 777833a517591ded67e0a043932f2462fcb0bfa8 (patch) | |
| tree | 0f506a6a03246a78d9356d7ec477ee4d01e8284e /meta-oe/recipes-support/poco | |
| parent | 8b6b188fe0a8b7c00630eb0544db7b6c9cdabd06 (diff) | |
| download | meta-openembedded-777833a517591ded67e0a043932f2462fcb0bfa8.tar.gz | |
poco: fix some ptests
Remove a number of ignored tests from the ignore-list. They were missing
some files that weren't installed - after installing them, they pass.
The remaining mongodb test on the list hasn't been tested.
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/poco')
| -rw-r--r-- | meta-oe/recipes-support/poco/poco/0001-cppignore.lnx-Ignore-PKCS12-and-testLaunch-test.patch | 53 | ||||
| -rw-r--r-- | meta-oe/recipes-support/poco/poco_1.14.2.bb | 5 |
2 files changed, 9 insertions, 49 deletions
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)}" |
