Skip to contentSkip to conversation

oeqa/selftest: test that newlib can build

PATCH New Ross Burton 1 participant 1 message Feb 8, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oeqa/selftest: test that newlib can build

Add a test to set TCLIBC=newlib and build newlib/libgloss.

This is the absolute minimum test, but at least it exercises the build of this package.

---
 meta/lib/oeqa/selftest/cases/newlib.py | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 meta/lib/oeqa/selftest/cases/newlib.py
meta/lib/oeqa/selftest/cases/newlib.py new file +11 -0
new file mode 100644
index 00000000000..999e3e78b08
@@ -0,0 +1,11 @@
+#
+# SPDX-License-Identifier: MIT
+#
+
+from oeqa.selftest.case import OESelftestTestCase
+from oeqa.utils.commands import bitbake
+
+class NewlibTest(OESelftestTestCase):
+    def test_newlib(self):
+        self.write_config('TCLIBC = "newlib"')
+        bitbake("newlib libgloss")
Signature · 1 line
2.25.1