oeqa/selftest: add test for oe-run-native

A small test to verify that oe-run-native is correctly working.

(From OE-Core rev: 1b577bcc44cbf7a9e94f8770f21841a16ad50c64)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2019-10-14 15:09:56 +01:00
committed by Richard Purdie
parent 56ddcbf25d
commit ce0b46650f

View File

@@ -121,3 +121,9 @@ class OEGitproxyTests(OESelftestTestCase):
if dash is None:
self.skipTest("No \"dash\" found on test system.")
self.run_oegitproxy(custom_shell=dash)
class OeRunNativeTest(OESelftestTestCase):
def test_oe_run_native(self):
bitbake("qemu-helper-native -c addto_recipe_sysroot")
result = runCmd("oe-run-native qemu-helper-native tunctl -h")
self.assertIn("Delete: tunctl -d device-name [-f tun-clone-device]", result.output)