mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-01 13:58:04 +00:00
fmt: add ptest support
Execution takes around a second. (From OE-Core rev: bd233792a0e57444acc88bee907b7a98598e7112) 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:
parent
f10ce107af
commit
910142ddaa
|
|
@ -19,6 +19,7 @@ PTESTS_FAST = "\
|
|||
expect \
|
||||
findutils \
|
||||
flex \
|
||||
fmt \
|
||||
gawk \
|
||||
gdbm \
|
||||
gdk-pixbuf \
|
||||
|
|
|
|||
5
meta/recipes-devtools/fmt/fmt/run-ptest
Normal file
5
meta/recipes-devtools/fmt/fmt/run-ptest
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
for t in `ls ./*-test`; do
|
||||
./$t && echo PASS: $t || echo FAIL: $t
|
||||
done
|
||||
|
|
@ -7,11 +7,19 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=b9257785fc4f3803a4b71b76c1412729"
|
|||
SRC_URI = "git://github.com/fmtlib/fmt;branch=master;protocol=https;tag=${PV}\
|
||||
file://0001-Workaround-an-ABI-issue-in-spdlog.patch \
|
||||
file://0001-Fix-compilation-on-clang-21-libc-21-4477.patch \
|
||||
file://run-ptest \
|
||||
"
|
||||
SRCREV = "40626af88bd7df9a5fb80be7b25ac85b122d6c21"
|
||||
|
||||
inherit cmake
|
||||
inherit cmake ptest
|
||||
|
||||
EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON"
|
||||
EXTRA_OECMAKE += "${@bb.utils.contains('PTEST_ENABLED', '1', '-DFMT_TEST=ON', '', d)}"
|
||||
|
||||
do_install_ptest(){
|
||||
for t in `ls ${B}/bin/*-test`; do
|
||||
install $t ${D}${PTEST_PATH}/
|
||||
done
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user