]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/selftest: add test for oe-run-native
authorRoss Burton <ross.burton@intel.com>
Mon, 14 Oct 2019 14:09:56 +0000 (15:09 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Nov 2019 13:31:27 +0000 (13:31 +0000)
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

index c169885cf32be8f98845736368ff1e35c47ecc77..80d8b2c4cca9cdd085ea7a86470c742e9fd94084 100644 (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)