diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-10-21 21:05:09 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-27 17:20:42 +0000 |
| commit | 910142ddaa5f6f720a00167cf3b09de5cfcccee3 (patch) | |
| tree | d4d873f2f920a84c37583e01f6187f134d7528e0 /meta/recipes-devtools | |
| parent | f10ce107af3af927004c257f8825f97cbd6ef16d (diff) | |
| download | poky-910142ddaa5f6f720a00167cf3b09de5cfcccee3.tar.gz | |
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>
Diffstat (limited to 'meta/recipes-devtools')
| -rw-r--r-- | meta/recipes-devtools/fmt/fmt/run-ptest | 5 | ||||
| -rw-r--r-- | meta/recipes-devtools/fmt/fmt_11.2.0.bb | 10 |
2 files changed, 14 insertions, 1 deletions
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 | |||
| 3 | for t in `ls ./*-test`; do | ||
| 4 | ./$t && echo PASS: $t || echo FAIL: $t | ||
| 5 | done | ||
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" | |||
| 7 | SRC_URI = "git://github.com/fmtlib/fmt;branch=master;protocol=https;tag=${PV}\ | 7 | SRC_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 | " |
| 11 | SRCREV = "40626af88bd7df9a5fb80be7b25ac85b122d6c21" | 12 | SRCREV = "40626af88bd7df9a5fb80be7b25ac85b122d6c21" |
| 12 | 13 | ||
| 13 | inherit cmake | 14 | inherit cmake ptest |
| 14 | 15 | ||
| 15 | EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON" | 16 | EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON" |
| 17 | EXTRA_OECMAKE += "${@bb.utils.contains('PTEST_ENABLED', '1', '-DFMT_TEST=ON', '', d)}" | ||
| 18 | |||
| 19 | do_install_ptest(){ | ||
| 20 | for t in `ls ${B}/bin/*-test`; do | ||
| 21 | install $t ${D}${PTEST_PATH}/ | ||
| 22 | done | ||
| 23 | } | ||
| 16 | 24 | ||
| 17 | BBCLASSEXTEND = "native nativesdk" | 25 | BBCLASSEXTEND = "native nativesdk" |
