libmd: add ptest for 'libmd'
PATCH 1/1 libmd: add ptest for 'libmd'
Adapt the compile 'test' phony target from Makefile and deploy as ptest for libmd.
It takes less than 30seconds for ptest completion
--- .../distro/include/ptest-packagelists.inc | 1 + meta/recipes-support/libmd/files/run-ptest | 18 ++++++++++++++++ meta/recipes-support/libmd/libmd_1.1.0.bb | 21 +++++++++++++++++-- 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-support/libmd/files/run-ptest
meta/conf/distro/include/ptest-packagelists.inc +1 -0
@@ -29,6 +29,7 @@ PTESTS_FAST = "\ json-glib \ libconvert-asn1-perl \ libgpg-error\ + libmd\ libnl \ libpcre \ libssh2 \
meta/recipes-support/libmd/files/run-ptest new file +18 -0
@@ -0,0 +1,18 @@ +#!/bin/sh + +cd test +status = 0 + +for testbin in *; do + if [ -x "$testbin" ] && [ ! -d "$testbin" ]; then + if "./$testbin"; then + echo "PASS: $testbin" + else + echo "FAIL: $testbin" + status=1 + fi + fi +done + +return $status +
meta/recipes-support/libmd/libmd_1.1.0.bb +19 -2
@@ -8,9 +8,26 @@ HOMEPAGE = "https://www.hadrons.org/software/libmd/" LICENSE = "BSD-3-Clause & BSD-2-Clause" LIC_FILES_CHKSUM = "file://COPYING;md5=0436d4fb62a71f661d6e8b7812f9e1df" -SRC_URI = "https://archive.hadrons.org/software/libmd/libmd-${PV}.tar.xz" +SRC_URI = "https://archive.hadrons.org/software/libmd/libmd-${PV}.tar.xz \ + file://run-ptest \ +" SRC_URI[sha256sum] = "1bd6aa42275313af3141c7cf2e5b964e8b1fd488025caf2f971f43b00776b332" -inherit autotools +inherit autotools ptest + +do_compile_ptest() { + sed -i "/\$(MAKE) \$(AM_MAKEFLAGS) check-TESTS/d" test/Makefile + oe_runmake check +} + + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/test + for bin in ${B}/test/*; do + if [ -x "$bin" ]; then + ${B}/libtool --mode=install install "$bin" ${D}${PTEST_PATH}/test/$(basename "$bin") + fi + done +} BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1
Quoted 6 lines · Naman Jain via lists.openembedded.org
Adapt the compile 'test' phony target from
Makefileand deploy as ptest for libmd.
It takes less than 30seconds for ptest completionSigned-off-by Naman Jain <[email protected]>
Hello,
This patch was also sent to master :
https://lists.openembedded.org/g/openembedded-core/message/229867
... but not merged yet.
Can you please wait for it to be merged on master before resending the backport request?
Thanks!
---
Quoted 96 lines
.../distro/include/ptest-packagelists.inc | 1 + meta/recipes-support/libmd/files/run-ptest | 18 ++++++++++++++++ meta/recipes-support/libmd/libmd_1.1.0.bb | 21 +++++++++++++++++-- 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-support/libmd/files/run-ptestmeta/conf/distro/include/ptest-packagelists.inc +1
-0@@ -29,6 +29,7 @@ PTESTS_FAST = "\ json-glib \ libconvert-asn1-perl \ libgpg-error\ + libmd\ libnl \ libpcre \ libssh2 \meta/recipes-support/libmd/files/run-ptest new file +18
-0@@ -0,0 +1,18 @@ +#!/bin/sh + +cd test +status = 0 + +for testbin in *; do + if [ -x "$testbin" ] && [ ! -d "$testbin" ]; then + if "./$testbin"; then + echo "PASS: $testbin" + else + echo "FAIL: $testbin" + status=1 + fi + fi +done + +return $status +meta/recipes-support/libmd/libmd_1.1.0.bb +3
-1@@ -8,9 +8,26 @@ HOMEPAGE = "https://www.hadrons.org/software/libmd/" LICENSE = "BSD-3-Clause & BSD-2-Clause" LIC_FILES_CHKSUM = "file://COPYING;md5=0436d4fb62a71f661d6e8b7812f9e1df" -SRC_URI = "https://archive.hadrons.org/software/libmd/libmd-${PV}.tar.xz" +SRC_URI = "https://archive.hadrons.org/software/libmd/libmd-${PV}.tar.xz \ + file://run-ptest \ +" SRC_URI[sha256sum] ="
1bd6aa42275313af3141c7cf2e5b964e8b1fd488025caf2f971f43b00776b332"meta/recipes-support/libmd/libmd_1.1.0.bb +13
-1-inherit autotools +inherit autotools ptest + +do_compile_ptest() { + sed -i "/\$(MAKE) \$(AM_MAKEFLAGS) check-TESTS/d" test/Makefile + oe_runmake check +} + + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/test + for bin in ${B}/test/*; do + if [ -x "$bin" ]; then + ${B}/libtool --mode=install install "$bin"${D}${PTEST_PATH}/test/$(basename "$bin")
meta/recipes-support/libmd/libmd_1.1.0.bb +3
-1+ fi + done +} BBCLASSEXTEND = "native nativesdk" --2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#230035):
https://lists.openembedded.org/g/openembedded-core/message/230035
Mute This Topic: https://lists.openembedded.org/mt/117485645/4316185
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 2 lines
Yoann Congal Smile ECS
Hi
The patch is merged in master
https://git.openembedded.org/openembedded-core/commit/?id=4c0a41389bdab30e3b349fef8df6ca0ef4893b89
Can you please check
Quoted 127 lines · Yoann Congal,
Quoted 6 lines · Naman Jain via lists.openembedded.org
Adapt the compile 'test' phony target from
Makefileand deploy as ptest for libmd.
It takes less than 30seconds for ptest completionSigned-off-by Naman Jain <[email protected]>Hello,
This patch was also sent to master :
https://lists.openembedded.org/g/openembedded-core/message/229867
... but not merged yet.Can you please wait for it to be merged on master before resending the backport request?
Thanks!
---
Quoted 86 lines
.../distro/include/ptest-packagelists.inc | 1 + meta/recipes-support/libmd/files/run-ptest | 18 ++++++++++++++++ meta/recipes-support/libmd/libmd_1.1.0.bb | 21 +++++++++++++++++-- 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-support/libmd/files/run-ptestmeta/conf/distro/include/ptest-packagelists.inc +1
-0@@ -29,6 +29,7 @@ PTESTS_FAST = "\ json-glib \ libconvert-asn1-perl \ libgpg-error\ + libmd\ libnl \ libpcre \ libssh2 \meta/recipes-support/libmd/files/run-ptest new file +18
-0@@ -0,0 +1,18 @@ +#!/bin/sh + +cd test +status = 0 + +for testbin in *; do + if [ -x "$testbin" ] && [ ! -d "$testbin" ]; then + if "./$testbin"; then + echo "PASS: $testbin" + else + echo "FAIL: $testbin" + status=1 + fi + fi +done + +return $status +meta/recipes-support/libmd/libmd_1.1.0.bb +0
-1@@ -8,9 +8,26 @@ HOMEPAGE = "https://www.hadrons.org/software/libmd/" LICENSE = "BSD-3-Clause & BSD-2-Clause" LIC_FILES_CHKSUM = "file://COPYING;md5=0436d4fb62a71f661d6e8b7812f9e1df" -SRC_URI = "https://archive.hadrons.org/software/libmd/libmd-${PV}.tar.xz"
+SRC_URI = "https://archive.hadrons.org/software/libmd/libmd-${PV}.tar.xz \
+ file://run-ptest \
+"
SRC_URI[sha256sum] =
"1bd6aa42275313af3141c7cf2e5b964e8b1fd488025caf2f971f43b00776b332"meta/recipes-support/libmd/libmd_1.1.0.bb +13
-1-inherit autotools +inherit autotools ptest + +do_compile_ptest() { + sed -i "/\$(MAKE) \$(AM_MAKEFLAGS) check-TESTS/d" test/Makefile + oe_runmake check +} + + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/test + for bin in ${B}/test/*; do + if [ -x "$bin" ]; then + ${B}/libtool --mode=install install "$bin"${D}${PTEST_PATH}/test/$(basename "$bin")
meta/recipes-support/libmd/libmd_1.1.0.bb +3
-1+ fi + done +} BBCLASSEXTEND = "native nativesdk" --2.34.1
Quoted 11 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#230035):
https://lists.openembedded.org/g/openembedded-core/message/230035
Mute This Topic: https://lists.openembedded.org/mt/117485645/4316185
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=---
Yoann Congal
Smile ECS
Hi
The patch is merged in master
https://git.openembedded.org/openembedded-core/commit/?id=4c0a41389bdab30e3b349fef8df6ca0ef4893b89
Can you please check
Thanks
Naman jain
Quoted 136 lines · Naman Jain,
Hi
The patch is merged in masterhttps://git.openembedded.org/openembedded-core/commit/?id=4c0a41389bdab30e3b349fef8df6ca0ef4893b89
Can you please checkQuoted 127 lines · Yoann Congal,
Quoted 6 lines · Naman Jain via lists.openembedded.org
Adapt the compile 'test' phony target from
Makefileand deploy as ptest for libmd.
It takes less than 30seconds for ptest completionSigned-off-by Naman Jain <[email protected]>Hello,
This patch was also sent to master :
https://lists.openembedded.org/g/openembedded-core/message/229867
... but not merged yet.Can you please wait for it to be merged on master before resending the backport request?
Thanks!
---
Quoted 86 lines
.../distro/include/ptest-packagelists.inc | 1 + meta/recipes-support/libmd/files/run-ptest | 18 ++++++++++++++++ meta/recipes-support/libmd/libmd_1.1.0.bb | 21 +++++++++++++++++-- 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-support/libmd/files/run-ptestmeta/conf/distro/include/ptest-packagelists.inc +1
-0@@ -29,6 +29,7 @@ PTESTS_FAST = "\ json-glib \ libconvert-asn1-perl \ libgpg-error\ + libmd\ libnl \ libpcre \ libssh2 \meta/recipes-support/libmd/files/run-ptest new file +18
-0@@ -0,0 +1,18 @@ +#!/bin/sh + +cd test +status = 0 + +for testbin in *; do + if [ -x "$testbin" ] && [ ! -d "$testbin" ]; then + if "./$testbin"; then + echo "PASS: $testbin" + else + echo "FAIL: $testbin" + status=1 + fi + fi +done + +return $status +meta/recipes-support/libmd/libmd_1.1.0.bb +0
-1@@ -8,9 +8,26 @@ HOMEPAGE = "https://www.hadrons.org/software/libmd/" LICENSE = "BSD-3-Clause & BSD-2-Clause" LIC_FILES_CHKSUM = "file://COPYING;md5=0436d4fb62a71f661d6e8b7812f9e1df" -SRC_URI = "https://archive.hadrons.org/software/libmd/libmd-${PV}.tar.xz"
+SRC_URI = "
https://archive.hadrons.org/software/libmd/libmd-${PV}.tar.xz \
+ file://run-ptest \
+"
SRC_URI[sha256sum] =
"1bd6aa42275313af3141c7cf2e5b964e8b1fd488025caf2f971f43b00776b332"meta/recipes-support/libmd/libmd_1.1.0.bb +13
-1-inherit autotools +inherit autotools ptest + +do_compile_ptest() { + sed -i "/\$(MAKE) \$(AM_MAKEFLAGS) check-TESTS/d" test/Makefile + oe_runmake check +} + + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/test + for bin in ${B}/test/*; do + if [ -x "$bin" ]; then + ${B}/libtool --mode=install install "$bin"${D}${PTEST_PATH}/test/$(basename "$bin")
meta/recipes-support/libmd/libmd_1.1.0.bb +3
-1+ fi + done +} BBCLASSEXTEND = "native nativesdk" --2.34.1
Quoted 11 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#230035):
https://lists.openembedded.org/g/openembedded-core/message/230035
Mute This Topic: https://lists.openembedded.org/mt/117485645/4316185
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=---
Yoann Congal
Smile ECS
Quoted 4 lines · Naman Jain
Hi
The patch is merged in master
https://git.openembedded.org/openembedded-core/commit/?id=4c0a41389bdab30e3b349fef8df6ca0ef4893b89
Can you please check
Hello,
Thanks for the ping. Sorry I missed the previous one last week :(
That was not clear to me at the time, but I can't accept this on stable branches under current stable policy (Sorry for that as well).
I will clarify the policy on that point with the project.
Thanks!
Quoted 141 lines
Thanks
Naman jainQuoted 136 lines · Naman Jain,
Hi
The patch is merged in masterhttps://git.openembedded.org/openembedded-core/commit/?id=4c0a41389bdab30e3b349fef8df6ca0ef4893b89
Can you please checkQuoted 127 lines · Yoann Congal,
Quoted 6 lines · Naman Jain via lists.openembedded.org
Adapt the compile 'test' phony target from
Makefileand deploy as ptest for libmd.
It takes less than 30seconds for ptest completionSigned-off-by Naman Jain <[email protected]>Hello,
This patch was also sent to master :
https://lists.openembedded.org/g/openembedded-core/message/229867
... but not merged yet.Can you please wait for it to be merged on master before resending the backport request?
Thanks!
---
Quoted 86 lines
.../distro/include/ptest-packagelists.inc | 1 + meta/recipes-support/libmd/files/run-ptest | 18 ++++++++++++++++ meta/recipes-support/libmd/libmd_1.1.0.bb | 21 +++++++++++++++++-- 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-support/libmd/files/run-ptestmeta/conf/distro/include/ptest-packagelists.inc +1
-0@@ -29,6 +29,7 @@ PTESTS_FAST = "\ json-glib \ libconvert-asn1-perl \ libgpg-error\ + libmd\ libnl \ libpcre \ libssh2 \meta/recipes-support/libmd/files/run-ptest new file +18
-0@@ -0,0 +1,18 @@ +#!/bin/sh + +cd test +status = 0 + +for testbin in *; do + if [ -x "$testbin" ] && [ ! -d "$testbin" ]; then + if "./$testbin"; then + echo "PASS: $testbin" + else + echo "FAIL: $testbin" + status=1 + fi + fi +done + +return $status +meta/recipes-support/libmd/libmd_1.1.0.bb +0
-1@@ -8,9 +8,26 @@ HOMEPAGE = "https://www.hadrons.org/software/libmd/" LICENSE = "BSD-3-Clause & BSD-2-Clause" LIC_FILES_CHKSUM = "file://COPYING;md5=0436d4fb62a71f661d6e8b7812f9e1df" -SRC_URI = "https://archive.hadrons.org/software/libmd/libmd-${PV}.tar.xz"
+SRC_URI = "
https://archive.hadrons.org/software/libmd/libmd-${PV}.tar.xz \
+ file://run-ptest \
+"
SRC_URI[sha256sum] =
"1bd6aa42275313af3141c7cf2e5b964e8b1fd488025caf2f971f43b00776b332"meta/recipes-support/libmd/libmd_1.1.0.bb +13
-1-inherit autotools +inherit autotools ptest + +do_compile_ptest() { + sed -i "/\$(MAKE) \$(AM_MAKEFLAGS) check-TESTS/d" test/Makefile + oe_runmake check +} + + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/test + for bin in ${B}/test/*; do + if [ -x "$bin" ]; then + ${B}/libtool --mode=install install "$bin"${D}${PTEST_PATH}/test/$(basename "$bin")
meta/recipes-support/libmd/libmd_1.1.0.bb +3
-1+ fi + done +} BBCLASSEXTEND = "native nativesdk" --2.34.1
Quoted 11 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#230035):
https://lists.openembedded.org/g/openembedded-core/message/230035
Mute This Topic: https://lists.openembedded.org/mt/117485645/4316185
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=---
Yoann Congal
Smile ECS
Signature · 2 lines
Yoann Congal Smile ECS