picolibc.py 610 B

123456789101112131415161718
  1. #
  2. # Copyright OpenEmbedded Contributors
  3. #
  4. # SPDX-License-Identifier: MIT
  5. #
  6. from oeqa.selftest.case import OESelftestTestCase
  7. from oeqa.utils.commands import bitbake, get_bb_var
  8. class PicolibcTest(OESelftestTestCase):
  9. def test_picolibc(self):
  10. compatible_machines = ['qemuarm', 'qemuarm64', 'qemuriscv32', 'qemuriscv64']
  11. machine = get_bb_var('MACHINE')
  12. if machine not in compatible_machines:
  13. self.skipTest('This test only works with machines : %s' % ' '.join(compatible_machines))
  14. self.write_config('TCLIBC = "picolibc"')
  15. bitbake("picolibc-helloworld")