mirror of
https://git.yoctoproject.org/poky
synced 2026-04-27 12:32:13 +02:00
oeqa/sdk/rust: Add a crate that needs the target and SDK host toolchain
Expand the QA tests, to test that the target and SDK host toolchains works. (From OE-Core rev: ed915e40d24a0a8b9d78374b297a9cd8090c6f9c) Signed-off-by: Sean Nyekjaer <sean@geanix.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
62e4c1e1df
commit
8545e5b458
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user