summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/conf/distro/include/ptest-packagelists.inc1
-rw-r--r--meta/recipes-devtools/fmt/fmt/run-ptest5
-rw-r--r--meta/recipes-devtools/fmt/fmt_11.2.0.bb10
3 files changed, 15 insertions, 1 deletions
diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc
index e6e725bd25..06d113e264 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -19,6 +19,7 @@ PTESTS_FAST = "\
19 expect \ 19 expect \
20 findutils \ 20 findutils \
21 flex \ 21 flex \
22 fmt \
22 gawk \ 23 gawk \
23 gdbm \ 24 gdbm \
24 gdk-pixbuf \ 25 gdk-pixbuf \
diff --git a/meta/recipes-devtools/fmt/fmt/run-ptest b/meta/recipes-devtools/fmt/fmt/run-ptest
new file mode 100644
index 0000000000..a069e4543c
--- /dev/null
+++ b/meta/recipes-devtools/fmt/fmt/run-ptest
@@ -0,0 +1,5 @@
1#!/bin/sh
2
3for t in `ls ./*-test`; do
4 ./$t && echo PASS: $t || echo FAIL: $t
5done
diff --git a/meta/recipes-devtools/fmt/fmt_11.2.0.bb b/meta/recipes-devtools/fmt/fmt_11.2.0.bb
index fd5dc0c4ab..06ba523ada 100644
--- a/meta/recipes-devtools/fmt/fmt_11.2.0.bb
+++ b/meta/recipes-devtools/fmt/fmt_11.2.0.bb
@@ -7,11 +7,19 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=b9257785fc4f3803a4b71b76c1412729"
7SRC_URI = "git://github.com/fmtlib/fmt;branch=master;protocol=https;tag=${PV}\ 7SRC_URI = "git://github.com/fmtlib/fmt;branch=master;protocol=https;tag=${PV}\
8 file://0001-Workaround-an-ABI-issue-in-spdlog.patch \ 8 file://0001-Workaround-an-ABI-issue-in-spdlog.patch \
9 file://0001-Fix-compilation-on-clang-21-libc-21-4477.patch \ 9 file://0001-Fix-compilation-on-clang-21-libc-21-4477.patch \
10 file://run-ptest \
10 " 11 "
11SRCREV = "40626af88bd7df9a5fb80be7b25ac85b122d6c21" 12SRCREV = "40626af88bd7df9a5fb80be7b25ac85b122d6c21"
12 13
13inherit cmake 14inherit cmake ptest
14 15
15EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON" 16EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON"
17EXTRA_OECMAKE += "${@bb.utils.contains('PTEST_ENABLED', '1', '-DFMT_TEST=ON', '', d)}"
18
19do_install_ptest(){
20 for t in `ls ${B}/bin/*-test`; do
21 install $t ${D}${PTEST_PATH}/
22 done
23}
16 24
17BBCLASSEXTEND = "native nativesdk" 25BBCLASSEXTEND = "native nativesdk"