Browse Source

oe-selftest: Add baremetal toolchain test

(From OE-Core rev: 1f3487dcd9eeaa18eec1103d2861849597335de1)

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Alejandro Hernandez Samaniego 2 years ago
parent
commit
293ae7b98b
1 changed files with 14 additions and 0 deletions
  1. 14 0
      meta/lib/oeqa/selftest/cases/baremetal.py

+ 14 - 0
meta/lib/oeqa/selftest/cases/baremetal.py

@@ -0,0 +1,14 @@
+
+#
+# Copyright OpenEmbedded Contributors
+#
+# SPDX-License-Identifier: MIT
+#
+
+from oeqa.selftest.case import OESelftestTestCase
+from oeqa.utils.commands import bitbake
+
+class BaremetalTest(OESelftestTestCase):
+    def test_baremetal(self):
+        self.write_config('TCLIBC = "baremetal"')
+        bitbake('baremetal-helloworld')