On 10/14/24 14:42, Yu, Mingli wrote:


On 10/14/24 10:36, Khem Raj wrote:
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

On Sun, Oct 13, 2024 at 7:31 PM Yu, Mingli <[email protected]> wrote:

Hi Khem,

On 10/14/24 00:18, Khem Raj wrote:
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

ptests seems to be failing for qemux86-64 - https://snips.sh/f/PWrmTR3-bm

I didn't reproduce the issue locally as below:

root@qemux86-64:/usr/lib64/tomlplusplus/ptest# ./run-ptest
PASS: tomlplusplus_odr_test
PASS: tomlplusplus_tests

Did you build and run with meta-oe-image-ptest-tomlplusplus ?
secondly, I ran with image built with clang compiler

Yes, I have tested with "$ bitbake meta-oe-image-ptest-tomlplusplus -ctestimage" and it succeeded as below:
$ bitbake meta-oe-image-ptest-tomlplusplus -ctestimage
[snip]
Output from runqemu:
runqemu - INFO - Received signal: 15
runqemu - INFO - Cleaning up
runqemu - INFO - Host uptime: 10209822.71

tput: No value for $TERM and no -T specified

RESULTS:
RESULTS - parselogs.ParseLogsTest.test_get_context: PASSED (0.00s)
RESULTS - parselogs.ParseLogsTest.test_parselogs: PASSED (2.02s)
RESULTS - ping.PingTest.test_ping: PASSED (0.01s)
RESULTS - ptest.PtestRunnerTest.test_ptestrunner_expectfail: PASSED (0.36s)
RESULTS - ssh.SSHTest.test_ssh: PASSED (0.50s)
RESULTS - ptest.PtestRunnerTest.test_ptestrunner_expectsuccess: SKIPPED (0.00s)
SUMMARY:
meta-oe-image-ptest-tomlplusplus () - Ran 6 tests in 2.892s
meta-oe-image-ptest-tomlplusplus - OK - All required tests passed (successes=4, skipped=1, failures=0, errors=0) NOTE: Tasks Summary: Attempted 1430 tasks of which 1429 didn't need to be rerun and all succeeded.


$ tail -2 conf/local.conf
TOOLCHAIN = "clang"
IMAGE_CLASSES += "testimage"

Could you help to provide your local.conf to help to reproduce the issue?

Or could you help to provide the reproduce steps based on poky?

Thanks,


Thanks,



Anyway, I will look into this then.

Thanks,


bitbake meta-oe-image-ptest-tomlplusplus
bitbake meta-oe-image-ptest-tomlplusplus -ctestimage

On Sat, Oct 12, 2024 at 3:01 AM Yu, Mingli via lists.openembedded.org
<[email protected]> wrote:

From: Mingli Yu <[email protected]>

   # ./run-ptest
PASS: tomlplusplus_odr_test
PASS: tomlplusplus_tests

Signed-off-by: Mingli Yu <[email protected]>
---
   .../recipes-devtools/tomlplusplus/files/run-ptest | 12 ++++++++++++
   .../tomlplusplus/tomlplusplus_git.bb              | 15 +++++++++++++--
   2 files changed, 25 insertions(+), 2 deletions(-)
   create mode 100755 meta-oe/recipes-devtools/tomlplusplus/files/run-ptest

diff --git a/meta-oe/recipes-devtools/tomlplusplus/files/run-ptest b/meta-oe/recipes-devtools/tomlplusplus/files/run-ptest
new file mode 100755
index 000000000..4f682c5eb
--- /dev/null
+++ b/meta-oe/recipes-devtools/tomlplusplus/files/run-ptest
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+cd tests
+for atest in tomlplusplus_* ; do
+    rm -rf tests.log
+    ./${atest} > tests.log 2>&1
+    if [ $? = 0 ] ; then
+        echo "PASS: ${atest}"
+    else
+        echo "FAIL: ${atest}"
+    fi
+done
diff --git a/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb b/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb
index 0e8202bdc..245c309a2 100644
--- a/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb
+++ b/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb
@@ -3,7 +3,9 @@ HOMEPAGE = "https://github.com/marzer/tomlplusplus";
   LICENSE = "MIT"
   LIC_FILES_CHKSUM = "file://LICENSE;md5=90960f22c10049c117d56ed2ee5ee167"

-SRC_URI = "git://github.com/marzer/tomlplusplus.git;protocol=https;branch=master" +SRC_URI = "git://github.com/marzer/tomlplusplus.git;protocol=https;branch=master \
+           file://run-ptest \
+"

   PV = "3.4.0"
   SRCREV = "30172438cee64926dc41fdd9c11fb3ba5b2ba9de"
@@ -11,4 +13,13 @@ S = "${WORKDIR}/git"

   DEPENDS = "cmake-native"

-inherit meson
+inherit meson ptest
+
+EXTRA_OEMESON += "-Dbuild_tests=${@bb.utils.contains("DISTRO_FEATURES", "ptest", "true", "false", d)} \
+"
+
+do_install_ptest () {
+    install -d ${D}${PTEST_PATH}/tests
+    cp ${B}/tests/tomlplusplus_odr_test ${D}${PTEST_PATH}/tests
+    cp ${B}/tests/tomlplusplus_tests ${D}${PTEST_PATH}/tests
+}
--
2.34.1








-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#112962): 
https://lists.openembedded.org/g/openembedded-devel/message/112962
Mute This Topic: https://lists.openembedded.org/mt/108964413/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to