summaryrefslogtreecommitdiffstats
path: root/meta-selftest/recipes-test/cpp/meson-example.bb
blob: 14a7ca8dc91ce2e63fd37b086343506fad37d810 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#
# 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