]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
oeqa/runtime: Update tests for maturin
authorTim Orling <tim.orling@konsulko.com>
Wed, 21 Jan 2026 21:07:19 +0000 (13:07 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 27 Jan 2026 11:35:05 +0000 (11:35 +0000)
* The output from maturin has changed in newer releases.
* Bump guessing-game version to 0.3.0
* Update to abi3 Python3 >= 3.9 support.

NOTE: The "maturin develop" step builds around 45 crates
and needs enough RAM to run. You will also probably want
the performance of KVM. For QEMU/testimage, you will
want the following in local.conf (or a similar .conf file):

QEMU_USE_KVM = 'True'
QB_MEM = '-m 2048'

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/runtime/cases/maturin.py

index 4e6384fe5e628f2f608ee05b293b3ccde306c6d9..8293322819458a89914836ce77dbd801acf2329b 100644 (file)
@@ -49,10 +49,9 @@ class MaturinDevelopTest(OERuntimeTestCase):
         self.target.run("echo 'nameserver 8.8.8.8' > /etc/resolv.conf")
         cmd = "cd %s; maturin develop" % targetdir
         status, output = self.target.run(cmd)
-        self.assertRegex(output, r"🔗 Found pyo3 bindings with abi3 support for Python ≥ 3.8")
-        self.assertRegex(output, r"🐍 Not using a specific python interpreter")
+        self.assertRegex(output, r"🔗 Found pyo3 bindings with abi3 support")
         self.assertRegex(output, r"📡 Using build options features from pyproject.toml")
-        self.assertRegex(output, r"Compiling guessing-game v0.1.0")
-        self.assertRegex(output, r"📦 Built wheel for abi3 Python ≥ 3.8")
-        self.assertRegex(output, r"🛠 Installed guessing-game-0.1.0")
+        self.assertRegex(output, r"Compiling guessing-game v0.3.0")
+        self.assertRegex(output, r"📦 Built wheel for abi3 Python ≥ 3.9")
+        self.assertRegex(output, r"🛠 Installed guessing-game-0.3.0")
         self.assertEqual(status, 0)