summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/picolibc.py
blob: e40b4fc3d39378ec2fea8781958f961004282814 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# Copyright OpenEmbedded Contributors
#
# SPDX-License-Identifier: MIT
#

from oeqa.selftest.case import OESelftestTestCase
from oeqa.utils.commands import bitbake, get_bb_var

class PicolibcTest(OESelftestTestCase):

    def test_picolibc(self):
        compatible_machines = ['qemuarm', 'qemuarm64', 'qemuriscv32', 'qemuriscv64']
        machine = get_bb_var('MACHINE')
        if machine not in compatible_machines:
            self.skipTest('This test only works with machines : %s' % ' '.join(compatible_machines))
        self.write_config('TCLIBC = "picolibc"')
        bitbake("picolibc-helloworld")