On 28 Sep 2026, at 12:20, Pratik Farkase via lists.openembedded.org
<[email protected]> wrote:
> +do_install_ptest() {
> + install -d ${D}${PTEST_PATH}/tests
> + for t in ${AVAHI_PTESTS}; do
> + d=$(dirname $t)
> + n=$(basename $t)
> + if [ -x ${B}/$d/.libs/$n ]; then
> + install -m 0755 ${B}/$d/.libs/$n ${D}${PTEST_PATH}/tests/$n
> + else
> + install -m 0755 ${B}/$t ${D}${PTEST_PATH}/tests/$n
> + fi
You can ask libtool to install and it handles this conditional for you:
${B}/libtool —mode=install install ${B}/$t …
> +for t in *; do
> + if ./"$t" >/dev/null 2>&1; then
> + echo "PASS: $t"
> + else
> + echo "FAIL: $t"
> + fi
Don’t redirect the output to /dev/null, if it fails we want to know why.
Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#247287):
https://lists.openembedded.org/g/openembedded-core/message/247287
Mute This Topic: https://lists.openembedded.org/mt/121469454/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-