glibc run-built-tests not working as expected when set to 'no'
Hi All
For glibc-y2038-tests recipe, when 'bitbake -c do_check glibc-y2038-tests' is executed, could see that the tests binaries are also run.
Below is the do_check() contents from glibc-y2038-tests_2.39.bb
# Just build tests for target - do not run them
do_check:append () {oe_runmake -i check run-built-tests=no
}
On completion of do_check stage, test binaries are also run and test summary details are present at the end of 'log.do_check' file and is given below:
from log.do_check and time it takes to complete the do_check() stage is 12min to 13min for scarthgap branch.
=== Summary of results ===
74 FAIL
1172 PASS
15 XFAIL
Option 'run-built-tests' is not working as expected as said in the recipe like build only the tests binaries but do not run tests binaries.
please let me know why test binaries are also been run when 'run-built-tests' is set to 'no' for 'bitbake -c do_check glibc-y2038-tests' or running the tests binaries is an expected behaviour for the above do_check() stage.
Thanks for reading the message.
regards
rajmohan
Quoted 8 lines · rajmohan r via lists.yoctoproject.org
Hi All
For glibc-y2038-tests recipe, when 'bitbake -cdo_checkglibc-y2038-tests' is executed, could see that the tests binaries are also run. Below is thedo_check()contents from glibc-y2038-tests_2.39.bb # Just build tests for target - do not run them do_check:append () {
oe_runmake-i check run-built-tests=no
}
Quoted 8 lines
On completion of
do_checkstage, test binaries are also run and test summary details are present at the end of 'log.do_check' file and is given below:
from log.do_check and time it takes to complete thedo_check()stage is 12min to 13min for scarthgap branch.
=== Summary of results ===
74 FAIL
1172 PASS
15 XFAIL
there are certain tests which do not require running, its possible thats being reported here. Can you share a sample of test which is executed like it should happen at runtime?
Quoted 17 lines
Option 'run-built-tests' is not working as expected as said in the recipe like build only the tests binaries but do not run tests binaries. please let me know why test binaries are also been run when 'run-built-tests' is set to 'no' for 'bitbake -c
do_checkglibc-y2038-tests' or running the tests binaries is an expected behaviour for the abovedo_check()stage. Thanks for reading the message.
regards
rajmohan-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13544):https://lists.yoctoproject.org/g/poky/message/13544 Mute This Topic:https://lists.yoctoproject.org/mt/111435049/1997914 Group Owner:[email protected] Unsubscribe:https://lists.yoctoproject.org/g/poky/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 33 lines · Khem Raj
Quoted 13 lines · rajmohan r via lists.yoctoproject.org
Hi All
For glibc-y2038-tests recipe, when 'bitbake -c
do_checkglibc-y2038-tests'is executed, could see that the tests binaries are also run.
Below is the
do_check()contents from glibc-y2038-tests_2.39.bb# Just build tests for target - do not run them
do_check:append () {oe_runmake-i check run-built-tests=no
}Quoted 10 lines
On completion of
do_checkstage, test binaries are also run and test summary
details are present at the end of 'log.do_check' file and is given below:
from log.do_check and time it takes to complete thedo_check()stage is 12min to 13min for scarthgap branch.
=== Summary of results ===
74 FAIL
1172 PASS
15 XFAIL
Quoted 5 lines
there are certain tests which do not require running, its possible thats being reported here. Can you share a sample of test which is executed like it should happen at runtime?
shown below few tests excerpts from failure list:
FAIL: lint-makefiles
FAIL: conform/ISO/setjmp.h/conform
FAIL: conform/ISO/stdlib.h/conform
FAIL: conform/ISO/stdlib.h/linknamespace
FAIL: conform/ISO11/setjmp.h/conform
FAIL: conform/ISO11/stdio.h/conform
FAIL: conform/ISO11/stdlib.h/conform
FAIL: conform/ISO11/stdlib.h/linknamespace
FAIL: conform/ISO11/wchar.h/conform
FAIL: conform/ISO99/setjmp.h/conform
FAIL: conform/ISO99/stdio.h/conform
similarly below are few passed tests excerpts from pass list:
PASS: dlfcn/check-abi-libdl
PASS: elf/check-abi-ld
PASS: elf/check-abi-libc
PASS: elf/check-abi-version-libc
PASS: elf/check-cet
PASS: elf/check-execstack
PASS: elf/check-initfini
PASS: elf/check-localplt
PASS: elf/check-textrel
PASS: elf/check-tst-relr-pie
PASS: elf/check-wx-segment
PASS: elf/tst-glibcelf
PASS: elf/tst-relro-ldso
PASS: elf/tst-relro-libc
PASS: hesiod/check-abi-libnss_hesiod
PASS: locale/check-abi-libBrokenLocale
PASS: login/check-abi-libutil
PASS: malloc/check-abi-libc_malloc_debug
PASS: math/check-abi-libm
PASS: math/test-tgmath3-macro-list
PASS: mathvec/check-abi-libmvec
PASS: misc/tst-glibcsyscalls
PASS: misc/tst-mman-consts
PASS: misc/tst-mount-compile
PASS: misc/tst-mount-consts
PASS: misc/tst-pidfd-consts
FAIL: misc/tst-syscall-list
PASS: nis/check-abi-libnsl
PASS: nptl/check-abi-libpthread
PASS: nptl_db/check-abi-libthread_db
PASS: nptl_db/db-symbols
PASS: nss/check-abi-libnss_compat
PASS: nss/check-abi-libnss_db
PASS: nss/check-abi-libnss_files
XFAIL: posix/annexc
PASS: resolv/check-abi-libanl
PASS: resolv/check-abi-libnss_dns
PASS: resolv/check-abi-libresolv
PASS: rt/check-abi-librt
PASS: signal/tst-signal-numbers
PASS: socket/tst-socket-consts
PASS: stdio-common/tst-errno-manual
PASS: stdlib/isomac
PASS: support/tst-glibcpp
Quoted 18 lines
Quoted 16 lines
Option 'run-built-tests' is not working as expected as said in the recipe like build only the tests binaries but do not run tests binaries.
please let me know why test binaries are also been run when 'run-built-tests'
is set to 'no' for 'bitbake -cdo_checkglibc-y2038-tests' or running the tests binaries is an expected behaviour for the abovedo_check()stage.Thanks for reading the message.
regards
rajmohan
We certainly do not expect any tests in that recipe to run at build time. It is intended only for building and installing tests for a runtime environment which are then executed with ptest.
If you can figure out a fix that avoids unnecessary running, that would be appreciated. I'd also question if we need the recipe at all at this point.
Alex
Quoted 114 lines · rajmohan r via lists.yoctoproject.org
On Sat, Mar 1, 2025 at 04:25 AM, Khem Raj wrote:
On 2/28/25 6:44 AM, rajmohan r via lists.yoctoproject.org wrote:
Hi All
For glibc-y2038-tests recipe, when 'bitbake -c
do_checkglibc-y2038-tests' is executed, could see that the tests binaries are also run.Below is the
do_check()contents from glibc-y2038-tests_2.39.bb# Just build tests for target - do not run them
do_check:append () {
oe_runmake-i check run-built-tests=no
}On completion of
do_checkstage, test binaries are also run and test summary details are present at the end of 'log.do_check' file and is given below:
from log.do_check and time it takes to complete thedo_check()stage is 12min to 13min for scarthgap branch.
=== Summary of results ===74 FAIL1172 PASS
15 XFAILthere are certain tests which do not require running, its possible thats being reported here. Can you share a sample of test which is executed like it should happen at runtime?
shown below few tests excerpts from failure list:
FAIL: lint-makefiles
FAIL: conform/ISO/setjmp.h/conform
FAIL: conform/ISO/stdlib.h/conform
FAIL: conform/ISO/stdlib.h/linknamespace
FAIL: conform/ISO11/setjmp.h/conform
FAIL: conform/ISO11/stdio.h/conform
FAIL: conform/ISO11/stdlib.h/conform
FAIL: conform/ISO11/stdlib.h/linknamespace
FAIL: conform/ISO11/wchar.h/conform
FAIL: conform/ISO99/setjmp.h/conform
FAIL: conform/ISO99/stdio.h/conformsimilarly below are few passed tests excerpts from pass list:
PASS: dlfcn/check-abi-libdl
PASS: elf/check-abi-ld
PASS: elf/check-abi-libc
PASS: elf/check-abi-version-libc
PASS: elf/check-cet
PASS: elf/check-execstack
PASS: elf/check-initfini
PASS: elf/check-localplt
PASS: elf/check-textrel
PASS: elf/check-tst-relr-pie
PASS: elf/check-wx-segment
PASS: elf/tst-glibcelf
PASS: elf/tst-relro-ldso
PASS: elf/tst-relro-libc
PASS: hesiod/check-abi-libnss_hesiod
PASS: locale/check-abi-libBrokenLocale
PASS: login/check-abi-libutil
PASS: malloc/check-abi-libc_malloc_debug
PASS: math/check-abi-libm
PASS: math/test-tgmath3-macro-list
PASS: mathvec/check-abi-libmvec
PASS: misc/tst-glibcsyscalls
PASS: misc/tst-mman-consts
PASS: misc/tst-mount-compile
PASS: misc/tst-mount-consts
PASS: misc/tst-pidfd-consts
FAIL: misc/tst-syscall-list
PASS: nis/check-abi-libnsl
PASS: nptl/check-abi-libpthread
PASS: nptl_db/check-abi-libthread_db
PASS: nptl_db/db-symbols
PASS: nss/check-abi-libnss_compat
PASS: nss/check-abi-libnss_db
PASS: nss/check-abi-libnss_files
XFAIL: posix/annexc
PASS: resolv/check-abi-libanl
PASS: resolv/check-abi-libnss_dns
PASS: resolv/check-abi-libresolv
PASS: rt/check-abi-librt
PASS: signal/tst-signal-numbers
PASS: socket/tst-socket-consts
PASS: stdio-common/tst-errno-manual
PASS: stdlib/isomac
PASS: support/tst-glibcppOption 'run-built-tests' is not working as expected as said in the recipe like build only the tests binaries but do not run tests binaries.
please let me know why test binaries are also been run when 'run-built-tests' is set to 'no' for 'bitbake -c
do_checkglibc-y2038-tests' or running the tests binaries is an expected behaviour for the abovedo_check()stage.Thanks for reading the message.
regards
rajmohan-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13551): https://lists.yoctoproject.org/g/poky/message/13551
Mute This Topic: https://lists.yoctoproject.org/mt/111435049/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 8 lines · Alexander Kanavin
We certainly do not expect any tests in that recipe to run at build time. It is intended only for building and installing tests for a runtime environment which are then executed with ptest.
If you can figure out a fix that avoids unnecessary running, that would be appreciated. I'd also question if we need the recipe at all at this point.
Attached the patch file (0001-glibc-y2038-tests-add-tests-special-in-run-built-tes.patch), which shall generate only binaries and will not run the binaries.
Please review and let me know if you any info to share.
Let the recipe be there.
Quoted 120 lines
Alex
Quoted 111 lines · rajmohan r via lists.yoctoproject.org
On Sat, Mar 1, 2025 at 04:25 AM, Khem Raj wrote:
On 2/28/25 6:44 AM, rajmohan r via lists.yoctoproject.org wrote:
Hi All
For glibc-y2038-tests recipe, when 'bitbake -c
do_checkglibc-y2038-tests'is executed, could see that the tests binaries are also run.
Below is the
do_check()contents from glibc-y2038-tests_2.39.bb# Just build tests for target - do not run them
do_check:append () {oe_runmake-i check run-built-tests=no
}On completion of
do_checkstage, test binaries are also run and test summary
details are present at the end of 'log.do_check' file and is given below:
from log.do_check and time it takes to complete thedo_check()stage is 12min to 13min for scarthgap branch.
=== Summary of results ===
74 FAIL
1172 PASS
15 XFAILthere are certain tests which do not require running, its possible thats being reported here. Can you share a sample of test which is executed like it should happen at runtime?
shown below few tests excerpts from failure list:
FAIL: lint-makefiles
FAIL: conform/ISO/setjmp.h/conform
FAIL: conform/ISO/stdlib.h/conform
FAIL: conform/ISO/stdlib.h/linknamespace
FAIL: conform/ISO11/setjmp.h/conform
FAIL: conform/ISO11/stdio.h/conform
FAIL: conform/ISO11/stdlib.h/conform
FAIL: conform/ISO11/stdlib.h/linknamespace
FAIL: conform/ISO11/wchar.h/conform
FAIL: conform/ISO99/setjmp.h/conform
FAIL: conform/ISO99/stdio.h/conformsimilarly below are few passed tests excerpts from pass list:
PASS: dlfcn/check-abi-libdl
PASS: elf/check-abi-ld
PASS: elf/check-abi-libc
PASS: elf/check-abi-version-libc
PASS: elf/check-cet
PASS: elf/check-execstack
PASS: elf/check-initfini
PASS: elf/check-localplt
PASS: elf/check-textrel
PASS: elf/check-tst-relr-pie
PASS: elf/check-wx-segment
PASS: elf/tst-glibcelf
PASS: elf/tst-relro-ldso
PASS: elf/tst-relro-libc
PASS: hesiod/check-abi-libnss_hesiod
PASS: locale/check-abi-libBrokenLocale
PASS: login/check-abi-libutil
PASS: malloc/check-abi-libc_malloc_debug
PASS: math/check-abi-libm
PASS: math/test-tgmath3-macro-list
PASS: mathvec/check-abi-libmvec
PASS: misc/tst-glibcsyscalls
PASS: misc/tst-mman-consts
PASS: misc/tst-mount-compile
PASS: misc/tst-mount-consts
PASS: misc/tst-pidfd-consts
FAIL: misc/tst-syscall-list
PASS: nis/check-abi-libnsl
PASS: nptl/check-abi-libpthread
PASS: nptl_db/check-abi-libthread_db
PASS: nptl_db/db-symbols
PASS: nss/check-abi-libnss_compat
PASS: nss/check-abi-libnss_db
PASS: nss/check-abi-libnss_files
XFAIL: posix/annexc
PASS: resolv/check-abi-libanl
PASS: resolv/check-abi-libnss_dns
PASS: resolv/check-abi-libresolv
PASS: rt/check-abi-librt
PASS: signal/tst-signal-numbers
PASS: socket/tst-socket-consts
PASS: stdio-common/tst-errno-manual
PASS: stdlib/isomac
PASS: support/tst-glibcppOption 'run-built-tests' is not working as expected as said in the recipe like build only the tests binaries but do not run tests binaries.
please let me know why test binaries are also been run when 'run-built-tests'
is set to 'no' for 'bitbake -cdo_checkglibc-y2038-tests' or running the tests binaries is an expected behaviour for the abovedo_check()stage.Thanks for reading the message.
regards
rajmohan
From 1d6c98a414de9ea5e59bdd31512d45bd682a42a6 Mon Sep 17 00:00:00 2001
From: rajmohan r <[email protected]>
Date: Mon, 24 Mar 2025 15:25:43 +0530
Subject: [PATCH] glibc-y2038-tests:add tests-special in run-built-tests yes
If 'run-built-tests' is 'yes' run the test binaries, else do not run the test binaries.
Currently its taking 13min to complete do_check() for glibc-y2038-tests. Test binaries are run in do_check() stage though 'run-built-tests' is set 'no'. Which is wrong hence include 'tests-special' target inside the 'run-built-tests' condition when set to 'yes' to avoid running the test binaries.
Also remove 'tests-special' target from the 'tests' and 'xtests' list when run-built-tests set to 'no' to avoid running test binaries.
After this change, no binary is run and time to complete do_check() stage is 3min.
Upstream-Status: Inappropriate [oe-specific]
--- .../glibc/glibc-y2038-tests_2.39.bb | 1 + ...tests-special-in-run-built-tests-yes.patch | 184 ++++++++++++++++++ 2 files changed, 185 insertions(+) create mode 100644 meta/recipes-core/glibc/glibc/include-tests-special-in-run-built-tests-yes.patch
meta/recipes-core/glibc/glibc-y2038-tests_2.39.bb +1 -0
@@ -5,6 +5,7 @@ inherit ptest features_check REQUIRED_DISTRO_FEATURES = "ptest" SRC_URI += "\ + file://include-tests-special-in-run-built-tests-yes.patch \ file://run-ptest \ "
meta/recipes-core/glibc/glibc/include-tests-special-in-run-built-tests-yes.patch new file +184 -0
184 lines not on this page · raw message
Signature · 1 line
2.34.1
Quoted 3 lines · rajmohan r via lists.yoctoproject.org
Attached the patch file (0001-glibc-y2038-tests-add-tests-special-in-run-built-tes.patch), which shall generate only binaries and will not run the binaries.
Please review and let me know if you any info to share.
Please send the patch with git send-email to openembedded-core mailing list. Poky list is the wrong place for it, and patch attachments are generally not reviewed, as it is difficult to comment on specific content of the patch.
Alex
Quoted 15 lines · Alexander Kanavin
Quoted 4 lines · rajmohan r via lists.yoctoproject.org
Attached the patch file (0001-glibc-y2038-tests-add-tests-special-in-run-built-tes.patch), which shall generate only binaries and will not run the binaries. Please review and let me know if you any info to share.
Please send the patch with git send-email to openembedded-core mailing list. Poky list is the wrong place for it, and patch attachments are generally not reviewed, as it is difficult to comment on specific content of the patch.
Alex
Quoted 9 lines · Alexander Kanavin
Quoted 4 lines · rajmohan r via lists.yoctoproject.org
Attached the patch file (0001-glibc-y2038-tests-add-tests-special-in-run-built-tes.patch), which shall generate only binaries and will not run the binaries. Please review and let me know if you any info to share.
Quoted 4 lines
Please send the patch with git send-email to openembedded-core mailing list. Poky list is the wrong place for it, and patch attachments are generally not reviewed, as it is difficult to comment on specific content of the patch.
My bad. I have send email and the patch detail is here https://lists.openembedded.org/g/openembedded-core/topic/scarthgap_patch/111953097
Quoted 3 lines
Alex
Quoted 81 lines · rajmohan r via lists.yoctoproject.org
On Sat, Mar 1, 2025 at 04:25 AM, Khem Raj wrote:
On 2/28/25 6:44 AM, rajmohan r via lists.yoctoproject.org wrote:
Hi All
For glibc-y2038-tests recipe, when 'bitbake -c
do_checkglibc-y2038-tests' is executed, could see that the tests binaries are also run.Below is the
do_check()contents from glibc-y2038-tests_2.39.bb# Just build tests for target - do not run them
do_check:append () {
oe_runmake-i check run-built-tests=no
}On completion of
do_checkstage, test binaries are also run and test summary details are present at the end of 'log.do_check' file and is given below:
from log.do_check and time it takes to complete thedo_check()stage is 12min to 13min for scarthgap branch.
=== Summary of results ===74 FAIL1172 PASS
15 XFAILthere are certain tests which do not require running, its possible thats being reported here. Can you share a sample of test which is executed like it should happen at runtime?
shown below few tests excerpts from failure list:
FAIL: lint-makefiles
FAIL: conform/ISO/setjmp.h/conform
FAIL: conform/ISO/stdlib.h/conform
FAIL: conform/ISO/stdlib.h/linknamespace
FAIL: conform/ISO11/setjmp.h/conform
FAIL: conform/ISO11/stdio.h/conform
FAIL: conform/ISO11/stdlib.h/conform
FAIL: conform/ISO11/stdlib.h/linknamespace
FAIL: conform/ISO11/wchar.h/conform
FAIL: conform/ISO99/setjmp.h/conform
FAIL: conform/ISO99/stdio.h/conformsimilarly below are few passed tests excerpts from pass list:
PASS: dlfcn/check-abi-libdl
PASS: elf/check-abi-ld
PASS: elf/check-abi-libc
PASS: elf/check-abi-version-libc
PASS: elf/check-cet
PASS: elf/check-execstack
PASS: elf/check-initfini
PASS: elf/check-localplt
PASS: elf/check-textrel
PASS: elf/check-tst-relr-pie
PASS: elf/check-wx-segment
PASS: elf/tst-glibcelf
PASS: elf/tst-relro-ldso
PASS: elf/tst-relro-libc
PASS: hesiod/check-abi-libnss_hesiod
PASS: locale/check-abi-libBrokenLocale
PASS: login/check-abi-libutil
PASS: malloc/check-abi-libc_malloc_debug
PASS: math/check-abi-libm
PASS: math/test-tgmath3-macro-list
PASS: mathvec/check-abi-libmvec
PASS: misc/tst-glibcsyscalls
PASS: misc/tst-mman-consts
PASS: misc/tst-mount-compile
PASS: misc/tst-mount-consts
PASS: misc/tst-pidfd-consts
FAIL: misc/tst-syscall-list
PASS: nis/check-abi-libnsl
PASS: nptl/check-abi-libpthread
PASS: nptl_db/check-abi-libthread_db
PASS: nptl_db/db-symbols
PASS: nss/check-abi-libnss_compat
PASS: nss/check-abi-libnss_db
PASS: nss/check-abi-libnss_files
XFAIL: posix/annexc
PASS: resolv/check-abi-libanl
Quoted 10 lines
PASS: resolv/check-abi-libnss_dns
PASS: resolv/check-abi-libresolv
PASS: rt/check-abi-librt
PASS: signal/tst-signal-numbers
PASS: socket/tst-socket-consts
PASS: stdio-common/tst-errno-manual
PASS: stdlib/isomac
PASS: support/tst-glibcpp
a few of them I checked are compile time tests only. I think we should perhaps see if we want to disable it during build and then run them on target, it might need
to recreate portions of build time to do that though.
Quoted 23 lines
Option 'run-built-tests' is not working as expected as said in the recipe like build only the tests binaries but do not run tests binaries.
please let me know why test binaries are also been run when 'run-built-tests' is set to 'no' for 'bitbake -c
do_checkglibc-y2038-tests' or running the tests binaries is an expected behaviour for the abovedo_check()stage.Thanks for reading the message.
regards
rajmohan-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13551): https://lists.yoctoproject.org/g/poky/message/13551
Mute This Topic: https://lists.yoctoproject.org/mt/111435049/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-