tomlplusplus: Move from meta-wayland
PATCH 1/3 tomlplusplus: Move from meta-wayland
From: Mingli Yu <[email protected]>
The tomlplusplus is header-only TOML config file parser and serializer for C++17 [1].
Move tomlplusplus from meta-wayland [2].
[1] https://github.com/marzer/tomlplusplus
[2] https://codeberg.org/flk/meta-wayland/src/branch/master/recipes-devtools/tomlplusplus/tomlplusplus_git.bb
--- .../tomlplusplus/tomlplusplus_git.bb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb
meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb new file +14 -0
@@ -0,0 +1,14 @@ +SUMMARY = "toml config parser and seriaizer for c++." +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" + +PV = "3.4.0" +SRCREV = "30172438cee64926dc41fdd9c11fb3ba5b2ba9de" +S = "${WORKDIR}/git" + +DEPENDS = "cmake-native" + +inherit meson
Signature · 1 line
2.34.1
PATCH 2/3 tomlplusplus: Add ptest support
From: Mingli Yu <[email protected]>
# ./run-ptest PASS: tomlplusplus_odr_test PASS: tomlplusplus_tests
--- .../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
meta-oe/recipes-devtools/tomlplusplus/files/run-ptest new file +12 -0
@@ -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
meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +13 -2
@@ -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 +}
Signature · 1 line
2.34.1
Re: [oe] [meta-oe][PATCH 2/3] tomlplusplus: Add ptest support
ptests seems to be failing for qemux86-64 - https://snips.sh/f/PWrmTR3-bm
bitbake meta-oe-image-ptest-tomlplusplus bitbake meta-oe-image-ptest-tomlplusplus -ctestimage
Quoted 74 lines · Mingli via lists.openembedded.org
From: Mingli Yu <[email protected]>
# ./run-ptest PASS: tomlplusplus_odr_test PASS: tomlplusplus_testsSigned-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-ptestmeta-oe/recipes-devtools/tomlplusplus/files/run-ptest new file +12
-0@@ -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 +donemeta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +13
-3@@ -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 (#112828): https://lists.openembedded.org/g/openembedded-devel/message/112828
Mute This Topic: https://lists.openembedded.org/mt/108964413/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-oe][PATCH 2/3] tomlplusplus: Add ptest support
Hi Khem,
Quoted 4 lines · Khem Raj
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
Anyway, I will look into this then.
Thanks,
Quoted 80 lines
bitbake meta-oe-image-ptest-tomlplusplus bitbake meta-oe-image-ptest-tomlplusplus -ctestimage
Quoted 74 lines · Mingli via lists.openembedded.org
From: Mingli Yu <[email protected]>
# ./run-ptest PASS: tomlplusplus_odr_test PASS: tomlplusplus_testsSigned-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
meta-oe/recipes-devtools/tomlplusplus/files/run-ptest new file +12
-0@@ -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 +donemeta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +13
-3@@ -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 (#112828): https://lists.openembedded.org/g/openembedded-devel/message/112828
Mute This Topic: https://lists.openembedded.org/mt/108964413/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-oe][PATCH 2/3] tomlplusplus: Add ptest support
Quoted 7 lines · Mingli
Hi Khem,
Quoted 3 lines · Khem Raj
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.
Quoted 7 lines
Quoted 1 line
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
Quoted 85 lines
Anyway, I will look into this then.
Thanks,
Quoted 80 lines
bitbake meta-oe-image-ptest-tomlplusplus bitbake meta-oe-image-ptest-tomlplusplus -ctestimage
Quoted 74 lines · Mingli via lists.openembedded.org
From: Mingli Yu <[email protected]>
# ./run-ptest PASS: tomlplusplus_odr_test PASS: tomlplusplus_testsSigned-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
meta-oe/recipes-devtools/tomlplusplus/files/run-ptest new file +12
-0@@ -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 +donemeta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +13
-3@@ -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 (#112828): https://lists.openembedded.org/g/openembedded-devel/message/112828
Mute This Topic: https://lists.openembedded.org/mt/108964413/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-oe][PATCH 2/3] tomlplusplus: Add ptest support
Quoted 13 lines · Khem Raj
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.Quoted 9 lines · Mingli
Hi Khem,
Quoted 4 lines · Khem Raj
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
Quoted 8 lines
Quoted 5 lines
I didn't reproduce the issue locally as below:
root@qemux86-64:/usr/lib64/tomlplusplus/ptest# ./run-ptest PASS: tomlplusplus_odr_test PASS: tomlplusplus_testsDid 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?
Thanks,
Quoted 86 lines
Quoted 86 lines
Anyway, I will look into this then.
Thanks,
Quoted 80 lines
bitbake meta-oe-image-ptest-tomlplusplus bitbake meta-oe-image-ptest-tomlplusplus -ctestimage
Quoted 74 lines · Mingli via lists.openembedded.org
From: Mingli Yu <[email protected]>
# ./run-ptest PASS: tomlplusplus_odr_test PASS: tomlplusplus_testsSigned-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
meta-oe/recipes-devtools/tomlplusplus/files/run-ptest new file +12
-0@@ -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 +donemeta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +13
-3@@ -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 (#112828): https://lists.openembedded.org/g/openembedded-devel/message/112828
Mute This Topic: https://lists.openembedded.org/mt/108964413/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [oe] [meta-oe][PATCH 2/3] tomlplusplus: Add ptest support
Quoted 49 lines · Mingli
Quoted 13 lines · Khem Raj
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.Quoted 9 lines · Mingli
Hi Khem,
Quoted 4 lines · Khem Raj
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
Quoted 8 lines
Quoted 5 lines
I didn't reproduce the issue locally as below:
root@qemux86-64:/usr/lib64/tomlplusplus/ptest# ./run-ptest PASS: tomlplusplus_odr_test PASS: tomlplusplus_testsDid 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.71tput: 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.
Quoted 5 lines
$ 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,
Quoted 97 lines
Thanks,
Quoted 76 lines
Quoted 76 lines
Anyway, I will look into this then.
Thanks,
Quoted 70 lines
bitbake meta-oe-image-ptest-tomlplusplus bitbake meta-oe-image-ptest-tomlplusplus -ctestimage
Quoted 64 lines · Mingli via lists.openembedded.org
From: Mingli Yu <[email protected]>
# ./run-ptest PASS: tomlplusplus_odr_test PASS: tomlplusplus_testsSigned-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
meta-oe/recipes-devtools/tomlplusplus/files/run-ptest new file +12
-0@@ -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 +donemeta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +0
-0@@ -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"meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +0
-0@@ -11,4 +13,13 @@ S = "${WORKDIR}/git"DEPENDS = "cmake-native"
meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +3
-1-inherit meson +inherit meson ptest + +EXTRA_OEMESON +="-Dbuild_tests=${@bb.utils.contains("DISTRO_FEATURES", "ptest", "true", "false", d)} \
+"meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +4
-0+ +do_install_ptest () { + install -d ${D}${PTEST_PATH}/tests + cp ${B}/tests/tomlplusplus_odr_test ${D}${PTEST_PATH}/testsQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
+ cp ${B}/tests/tomlplusplus_tests ${D}${PTEST_PATH}/tests +}
Signature · 1 line
2.34.1-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#112847): https://lists.openembedded.org/g/openembedded-devel/message/112847
Mute This Topic: https://lists.openembedded.org/mt/108964413/3618448
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-oe][PATCH 2/3] tomlplusplus: Add ptest support
Quoted 60 lines · Mingli
Quoted 56 lines · Mingli
Quoted 17 lines · Khem Raj
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.
Quoted 11 lines · Mingli
Hi Khem,
Quoted 6 lines · Khem Raj
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-bmQuoted 8 lines
Quoted 5 lines
I didn't reproduce the issue locally as below:
root@qemux86-64:/usr/lib64/tomlplusplus/ptest# ./run-ptest PASS: tomlplusplus_odr_test PASS: tomlplusplus_testsDid 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.71tput: 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.
Quoted 7 lines
Quoted 5 lines
$ 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?
You might need couple of more entriesTC_CXX_RUNTIME ?= "llvm"
RUNTIME ?= "llvm"
and add ld-is-lld to DISTRO_FEATURES and see if that helps to reproduce it
Quoted 106 lines
Thanks,
Quoted 103 lines
Thanks,
Quoted 82 lines
Quoted 82 lines
Anyway, I will look into this then.
Thanks,
Quoted 76 lines
bitbake meta-oe-image-ptest-tomlplusplus bitbake meta-oe-image-ptest-tomlplusplus -ctestimage
Quoted 70 lines · Mingli via lists.openembedded.org
From: Mingli Yu <[email protected]>
# ./run-ptest PASS: tomlplusplus_odr_test PASS: tomlplusplus_testsSigned-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-ptestmeta-oe/recipes-devtools/tomlplusplus/files/run-ptest new file +12
-0@@ -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 +donediff --git a/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb b/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb index
0e8202bdc..245c309a2100644meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +0
-0@@ -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\meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +5
-1+ 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)} \
+"meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +4
-0+ +do_install_ptest () { + install -d ${D}${PTEST_PATH}/tests + cp ${B}/tests/tomlplusplus_odr_test ${D}${PTEST_PATH}/testsQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +2
-1+ cp ${B}/tests/tomlplusplus_tests ${D}${PTEST_PATH}/tests +} --2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#112847): https://lists.openembedded.org/g/openembedded-devel/message/112847
Mute This Topic: https://lists.openembedded.org/mt/108964413/3618448
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-oe][PATCH 2/3] tomlplusplus: Add ptest support
Quoted 70 lines · Khem Raj
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.Quoted 66 lines · Mingli
Quoted 61 lines · Mingli
Quoted 17 lines · Khem Raj
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.
Quoted 11 lines · Mingli
Hi Khem,
Quoted 6 lines · Khem Raj
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-bmQuoted 8 lines
Quoted 5 lines
I didn't reproduce the issue locally as below:
root@qemux86-64:/usr/lib64/tomlplusplus/ptest# ./run-ptest PASS: tomlplusplus_odr_test PASS: tomlplusplus_testsDid 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.71tput: 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?
Quoted 7 lines
Quoted 1 line
Or could you help to provide the reproduce steps based on poky?
You might need couple of more entries
TC_CXX_RUNTIME?= "llvm"
RUNTIME ?= "llvm"and add ld-is-lld to
DISTRO_FEATURESand see if that helps to reproduce it
Still can't reproduce locally.
Paste my steps below to help to check if I miss something. 1, mkdir -p /build/builds
2, cd /build && git clone git://git.yoctoproject.org/poky
3, git clone git://git.openembedded.org/meta-openembedded
3, git clone https://github.com/kraj/meta-clang.git
4, cd /build/poky
5, . oe-init-build-env ../builds/my-build
6, Add below layers into conf/bblayers.conf /build/meta-openembedded/meta-python /build/meta-openembedded/meta-oe /build/meta-clang
7, add below config into conf/local.conf TOOLCHAIN = "clang"
TCLIBC = "musl"IMAGE_CLASSES += "testimage"TC_CXX_RUNTIME ?= "llvm"
RUNTIME ?= "llvm"
DISTRO_FEATURES:append = " ld-is-lld"
$ tail -7 conf/local.conf CONF_VERSION = "2" TOOLCHAIN = "clang" TCLIBC = "musl" IMAGE_CLASSES += "testimage" TC_CXX_RUNTIME ?= "llvm" RUNTIME ?= "llvm" DISTRO_FEATURES:append = " ld-is-lld"
8, bitbake meta-oe-image-ptest-tomlplusplus && bitbake meta-oe-image-ptest-tomlplusplus -ctestimage
Thanks,
Quoted 107 lines
Quoted 107 lines
Thanks,
Quoted 103 lines
Thanks,
Quoted 82 lines
Quoted 82 lines
Anyway, I will look into this then.
Thanks,
Quoted 76 lines
bitbake meta-oe-image-ptest-tomlplusplus bitbake meta-oe-image-ptest-tomlplusplus -ctestimage
Quoted 70 lines · Mingli via lists.openembedded.org
From: Mingli Yu <[email protected]>
# ./run-ptest PASS: tomlplusplus_odr_test PASS: tomlplusplus_testsSigned-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 100755meta-oe/recipes-devtools/tomlplusplus/files/run-ptest
meta-oe/recipes-devtools/tomlplusplus/files/run-ptest new file +12
-0@@ -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 +donediff --git a/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb b/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb index
0e8202bdc..245c309a2100644meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +0
-0@@ -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\meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +5
-1+ 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)} \
+"meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +4
-0+ +do_install_ptest () { + install -d ${D}${PTEST_PATH}/tests + cp ${B}/tests/tomlplusplus_odr_test ${D}${PTEST_PATH}/testsQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +2
-1+ cp ${B}/tests/tomlplusplus_tests ${D}${PTEST_PATH}/tests +} --2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#112847): https://lists.openembedded.org/g/openembedded-devel/message/112847
Mute This Topic: https://lists.openembedded.org/mt/108964413/3618448
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-oe][PATCH 2/3] tomlplusplus: Add ptest support
Quoted 111 lines · Mingli
Quoted 70 lines · Khem Raj
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.Quoted 66 lines · Mingli
Quoted 61 lines · Mingli
Quoted 17 lines · Khem Raj
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.
Quoted 11 lines · Mingli
Hi Khem,
Quoted 6 lines · Khem Raj
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-bmQuoted 8 lines
Quoted 5 lines
I didn't reproduce the issue locally as below:
root@qemux86-64:/usr/lib64/tomlplusplus/ptest# ./run-ptest PASS: tomlplusplus_odr_test PASS: tomlplusplus_testsDid 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.71tput: 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?
Quoted 7 lines
Quoted 1 line
Or could you help to provide the reproduce steps based on poky?
You might need couple of more entries
TC_CXX_RUNTIME?= "llvm"
RUNTIME ?= "llvm"and add ld-is-lld to
DISTRO_FEATURESand see if that helps to reproduce itStill can't reproduce locally.
Paste my steps below to help to check if I miss something. 1, mkdir -p /build/builds
2, cd /build && git clonegit://git.yoctoproject.org/poky
3, git clonegit://git.openembedded.org/meta-openembedded
3, git clone https://github.com/kraj/meta-clang.git
4, cd /build/poky
5, . oe-init-build-env ../builds/my-build
6, Add below layers intoconf/bblayers.conf/build/meta-openembedded/meta-python /build/meta-openembedded/meta-oe /build/meta-clang
7, add below config intoconf/local.confTOOLCHAIN = "clang"
TCLIBC = "musl"IMAGE_CLASSES+= "testimage"TC_CXX_RUNTIME?= "llvm"
RUNTIME ?= "llvm"
DISTRO_FEATURES:append = " ld-is-lld"$ tail -7 conf/local.conf CONF_VERSION = "2" TOOLCHAIN = "clang" TCLIBC = "musl" IMAGE_CLASSES += "testimage" TC_CXX_RUNTIME ?= "llvm" RUNTIME ?= "llvm" DISTRO_FEATURES:append = " ld-is-lld"
Quoted 2 lines
8, bitbake meta-oe-image-ptest-tomlplusplus && bitbake meta-oe-image-ptest-tomlplusplus -ctestimage
the issue happens when using libc++ instead of libstdc++ you can see the problem with yoe distro which uses llvm libc++ by default with clang.
I added
LIBCPLUSPLUS:toolchain-clang = "-stdlib=libstdc++"
and then the tests started to pass. I will add this to meta-clang nonclangable.conf file.
Quoted 110 lines
Thanks,
Quoted 107 lines
Quoted 107 lines
Thanks,
Quoted 103 lines
Thanks,
Quoted 82 lines
Quoted 82 lines
Anyway, I will look into this then.
Thanks,
Quoted 76 lines
bitbake meta-oe-image-ptest-tomlplusplus bitbake meta-oe-image-ptest-tomlplusplus -ctestimage
Quoted 70 lines · Mingli via lists.openembedded.org
From: Mingli Yu <[email protected]>
# ./run-ptest PASS: tomlplusplus_odr_test PASS: tomlplusplus_testsSigned-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 100755meta-oe/recipes-devtools/tomlplusplus/files/run-ptest
meta-oe/recipes-devtools/tomlplusplus/files/run-ptest new file +12
-0@@ -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 +donediff --git a/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb b/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb index
0e8202bdc..245c309a2100644meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +0
-0@@ -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\meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +5
-1+ 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)} \
+"meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +4
-0+ +do_install_ptest () { + install -d ${D}${PTEST_PATH}/tests + cp ${B}/tests/tomlplusplus_odr_test ${D}${PTEST_PATH}/testsQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +2
-1+ cp ${B}/tests/tomlplusplus_tests ${D}${PTEST_PATH}/tests +} --2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#112847): https://lists.openembedded.org/g/openembedded-devel/message/112847
Mute This Topic: https://lists.openembedded.org/mt/108964413/3618448
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
PATCH 3/3 ptest-packagelists-meta-oe.inc: Add tomlplusplus
In reply to [email protected]From: Mingli Yu <[email protected]>
--- meta-oe/conf/include/ptest-packagelists-meta-oe.inc | 1 + 1 file changed, 1 insertion(+)
meta-oe/conf/include/ptest-packagelists-meta-oe.inc +1 -0
@@ -40,6 +40,7 @@ PTESTS_FAST_META_OE = "\ protobuf \ pv \ sdbus-c++ \ + tomlplusplus \ uthash \ xmlsec1 \ zeromq \
Signature · 1 line
2.34.1