]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
oeqa/sdk/rust: Add a crate that needs the target and SDK host toolchain
authorSean Nyekjaer <sean@geanix.com>
Thu, 23 Jan 2025 18:38:09 +0000 (19:38 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 1 Feb 2025 07:43:57 +0000 (07:43 +0000)
Expand the QA tests, to test that the target and SDK host toolchains works.

Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/lib/oeqa/sdk/cases/rust.py

index a54245851b424003fd45937759156d447453c60b..4b115bebf521d705064fe119a73484b3229a650c 100644 (file)
@@ -31,6 +31,7 @@ class RustCompileTest(OESDKTestCase):
             raise unittest.SkipTest("RustCompileTest class: SDK doesn't contain a Rust cross-canadian toolchain")
 
     def test_cargo_build(self):
+        self._run('cd %s/hello; cargo add zstd' % (self.tc.sdk_dir))
         self._run('cd %s/hello; cargo build' % self.tc.sdk_dir)
 
 class RustHostCompileTest(OESDKTestCase):
@@ -52,5 +53,6 @@ class RustHostCompileTest(OESDKTestCase):
 
     def test_cargo_build(self):
         sdksys = self.td.get("SDK_SYS")
+        self._run('cd %s/hello; cargo add zstd' % (self.tc.sdk_dir))
         self._run('cd %s/hello; cargo build --target %s-gnu' % (self.tc.sdk_dir, sdksys))
         self._run('cd %s/hello; cargo run --target %s-gnu' % (self.tc.sdk_dir, sdksys))