From ce0b46650f448bf2d7df00fa297f1565c80021b4 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 14 Oct 2019 15:09:56 +0100 Subject: 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 Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/cases/oescripts.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'meta/lib/oeqa/selftest/cases/oescripts.py') diff --git a/meta/lib/oeqa/selftest/cases/oescripts.py b/meta/lib/oeqa/selftest/cases/oescripts.py index c169885cf3..80d8b2c4cc 100644 --- a/meta/lib/oeqa/selftest/cases/oescripts.py +++ b/meta/lib/oeqa/selftest/cases/oescripts.py @@ -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) -- cgit v1.2.3-54-g00ecf