diff mbox series

[4/7] oeqa/selftest: add test for oe-run-native

Message ID 20191031105518.7716-4-ross.burton@intel.com
State Accepted
Commit 1b577bcc44cbf7a9e94f8770f21841a16ad50c64
Headers show
Series [1/7] qemu-helper-native: add missing option to getopt() call | expand

Commit Message

Ross Burton Oct. 31, 2019, 10:55 a.m. UTC
A small test to verify that oe-run-native is correctly working.

Signed-off-by: Ross Burton <ross.burton@intel.com>

---
 meta/lib/oeqa/selftest/cases/oescripts.py | 6 ++++++
 1 file changed, 6 insertions(+)

-- 
2.20.1

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

diff --git a/meta/lib/oeqa/selftest/cases/oescripts.py b/meta/lib/oeqa/selftest/cases/oescripts.py
index c169885cf32..80d8b2c4cca 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)