mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
fmt: make ptest installation and execution more posix compliant
Instead of using `ls...` just enumerate the folder content with an asterisk. No behavior change should come from this patch. (From OE-Core rev: b1870e588958fa6957278a6c253a70fa30485764) Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
78bd8888af
commit
351f7f3b4c
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
for t in `ls ./*-test`; do
|
for t in *-test; do
|
||||||
./$t && echo PASS: $t || echo FAIL: $t
|
./$t && echo PASS: $t || echo FAIL: $t
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON"
|
|||||||
EXTRA_OECMAKE += "${@bb.utils.contains('PTEST_ENABLED', '1', '-DFMT_TEST=ON', '', d)}"
|
EXTRA_OECMAKE += "${@bb.utils.contains('PTEST_ENABLED', '1', '-DFMT_TEST=ON', '', d)}"
|
||||||
|
|
||||||
do_install_ptest(){
|
do_install_ptest(){
|
||||||
for t in `ls ${B}/bin/*-test`; do
|
for t in ${B}/bin/*-test; do
|
||||||
install $t ${D}${PTEST_PATH}/
|
install $t ${D}${PTEST_PATH}/
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user