On 6 May 2026, at 19:51, Pratik Farkase via lists.openembedded.org 
<[email protected]> wrote:
> +++ b/meta/recipes-support/gmp/gmp/run-ptest
> @@ -0,0 +1,19 @@
> +#!/bin/sh
> +
> +cd "$(dirname "$0")/tests" || exit 1

Overly defensive, just fail

> +for d in . mpz mpn mpf mpq rand misc cxx; do
> +    [ -d "$d" ] || continue
> +    for test in $(find "$d" -maxdepth 1 -type f -executable | sort); do
> +        testname=$(echo "$test" | sed 's|^\./||')
> +        ./"$test"

You could just do a find of tests and let it recurse instead of having to know 
(and keep in sync) the list of directories?

ie instead of iterating the directories and then the files, just do "for test 
in $(find . -type f -executable|sort) …” inside tests/

> +do_install_ptest() {
> +    install -d ${D}${PTEST_PATH}/tests
> +
> +    for d in . mpz mpn mpf mpq rand misc cxx; do
> +        install -d ${D}${PTEST_PATH}/tests/$d
> +        find ${B}/tests/$d -maxdepth 1 -type f -executable \
> +            ! -name "*.la" | while read -r t; do

Could this just be a makefile-getvar to get the check_PROGRAMS value?

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

Reply via email to