mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
This simple C++ project supports compilation with CMake and Meson. (Autotool support could be added later on.) It's supposed to be used with oe-selftest. An artificial project has several advantages over compiling a normal CMake or Meson based project for testing purposes: - It is much faster because it can be kept minimalistic - It can cover multiple odd corner cases - No one will change it in an unpredictable way - It can support multiple build tools with only one C++ codebase (From OE-Core rev: 4904e772470b0d6e5d98ef0344b3f2bf54214661) Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
28 lines
496 B
BlitzBasic
28 lines
496 B
BlitzBasic
#
|
|
# Copyright OpenEmbedded Contributors
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
SUMMARY = "A C++ example compiled with meson."
|
|
|
|
require cpp-example.inc
|
|
|
|
SRC_URI += "\
|
|
file://meson.build \
|
|
file://meson.options \
|
|
"
|
|
|
|
inherit pkgconfig meson
|
|
|
|
PACKAGECONFIG[failing_test] = "-DFAILING_TEST=enabled"
|
|
|
|
FILES:${PN}-ptest += "${bindir}/test-mesonex"
|
|
|
|
do_run_tests () {
|
|
meson test -C "${B}" --no-rebuild
|
|
}
|
|
do_run_tests[doc] = "Run meson test using qemu-user"
|
|
|
|
addtask do_run_tests after do_compile
|