diff options
author | Sean Nyekjaer <sean@geanix.com> | 2025-01-23 19:38:09 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-01 13:20:45 +0000 |
commit | 8545e5b458118941348f17094d24ce3df8e1879c (patch) | |
tree | 3488d13d629966f6f4acfd69497474df9e2a7902 | |
parent | 62e4c1e1df5358242dda50dec14027dc641d2d8a (diff) | |
download | poky-8545e5b458118941348f17094d24ce3df8e1879c.tar.gz |
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>
-rw-r--r-- | meta/lib/oeqa/sdk/cases/rust.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oeqa/sdk/cases/rust.py b/meta/lib/oeqa/sdk/cases/rust.py index a54245851b..4b115bebf5 100644 --- a/meta/lib/oeqa/sdk/cases/rust.py +++ b/meta/lib/oeqa/sdk/cases/rust.py | |||
@@ -31,6 +31,7 @@ class RustCompileTest(OESDKTestCase): | |||
31 | raise unittest.SkipTest("RustCompileTest class: SDK doesn't contain a Rust cross-canadian toolchain") | 31 | raise unittest.SkipTest("RustCompileTest class: SDK doesn't contain a Rust cross-canadian toolchain") |
32 | 32 | ||
33 | def test_cargo_build(self): | 33 | def test_cargo_build(self): |
34 | self._run('cd %s/hello; cargo add zstd' % (self.tc.sdk_dir)) | ||
34 | self._run('cd %s/hello; cargo build' % self.tc.sdk_dir) | 35 | self._run('cd %s/hello; cargo build' % self.tc.sdk_dir) |
35 | 36 | ||
36 | class RustHostCompileTest(OESDKTestCase): | 37 | class RustHostCompileTest(OESDKTestCase): |
@@ -52,5 +53,6 @@ class RustHostCompileTest(OESDKTestCase): | |||
52 | 53 | ||
53 | def test_cargo_build(self): | 54 | def test_cargo_build(self): |
54 | sdksys = self.td.get("SDK_SYS") | 55 | sdksys = self.td.get("SDK_SYS") |
56 | self._run('cd %s/hello; cargo add zstd' % (self.tc.sdk_dir)) | ||
55 | self._run('cd %s/hello; cargo build --target %s-gnu' % (self.tc.sdk_dir, sdksys)) | 57 | self._run('cd %s/hello; cargo build --target %s-gnu' % (self.tc.sdk_dir, sdksys)) |
56 | self._run('cd %s/hello; cargo run --target %s-gnu' % (self.tc.sdk_dir, sdksys)) | 58 | self._run('cd %s/hello; cargo run --target %s-gnu' % (self.tc.sdk_dir, sdksys)) |