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>
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):
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))