]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/selftest: test that newlib can build
authorRoss Burton <ross@burtonini.com>
Tue, 8 Feb 2022 14:30:43 +0000 (14:30 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 12 Feb 2022 17:02:56 +0000 (17:02 +0000)
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.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/newlib.py [new file with mode: 0644]

diff --git a/meta/lib/oeqa/selftest/cases/newlib.py b/meta/lib/oeqa/selftest/cases/newlib.py
new file mode 100644 (file)
index 0000000..999e3e7
--- /dev/null
@@ -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")