summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-10-08 12:52:01 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-10-08 20:47:52 +0100
commit3dc75ab44c23c4ff26502b96abded3c1c0b94e38 (patch)
tree5a43fb13b82767e1444570635f9b27a8dbb6d095
parent2ed29a5d0d28bb96235c86f1e40f454edac65bf6 (diff)
downloadopenembedded-core-3dc75ab44c23c4ff26502b96abded3c1c0b94e38.tar.gz
openembedded-core-3dc75ab44c23c4ff26502b96abded3c1c0b94e38.tar.bz2
openembedded-core-3dc75ab44c23c4ff26502b96abded3c1c0b94e38.zip
oeqa/sdk: improve Meson test
Verify that the build inside the SDK is detected as a cross compilation. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/sdk/cases/buildepoxy.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oeqa/sdk/cases/buildepoxy.py b/meta/lib/oeqa/sdk/cases/buildepoxy.py
index f3d207c6dd..4211955f8d 100644
--- a/meta/lib/oeqa/sdk/cases/buildepoxy.py
+++ b/meta/lib/oeqa/sdk/cases/buildepoxy.py
@@ -32,7 +32,9 @@ class EpoxyTest(OESDKTestCase):
self.assertTrue(os.path.isdir(dirs["source"]))
os.makedirs(dirs["build"])
- self._run("meson -Degl=no -Dglx=no -Dx11=false {build} {source}".format(**dirs))
+ log = self._run("meson -Degl=no -Dglx=no -Dx11=false {build} {source}".format(**dirs))
+ # Check that Meson thinks we're doing a cross build and not a native
+ self.assertIn("Build type: cross build", log)
self._run("ninja -C {build} -v".format(**dirs))
self._run("DESTDIR={install} ninja -C {build} -v install".format(**dirs))