diff options
author | Ross Burton <ross.burton@intel.com> | 2019-10-08 12:52:01 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-10-09 14:07:43 +0100 |
commit | 7a765a628ff2d69df54b108e53d93da0cde3edd8 (patch) | |
tree | 4a4dedd21b35dc652eabff92898c96773ba52c69 | |
parent | 4e8dd8db6153e868481df83f40bcadcb3993d673 (diff) | |
download | poky-7a765a628ff2d69df54b108e53d93da0cde3edd8.tar.gz |
oeqa/sdk: improve Meson test
Verify that the build inside the SDK is detected as a cross compilation.
(From OE-Core rev: 3dc75ab44c23c4ff26502b96abded3c1c0b94e38)
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.py | 4 |
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): | |||
32 | self.assertTrue(os.path.isdir(dirs["source"])) | 32 | self.assertTrue(os.path.isdir(dirs["source"])) |
33 | os.makedirs(dirs["build"]) | 33 | os.makedirs(dirs["build"]) |
34 | 34 | ||
35 | self._run("meson -Degl=no -Dglx=no -Dx11=false {build} {source}".format(**dirs)) | 35 | log = self._run("meson -Degl=no -Dglx=no -Dx11=false {build} {source}".format(**dirs)) |
36 | # Check that Meson thinks we're doing a cross build and not a native | ||
37 | self.assertIn("Build type: cross build", log) | ||
36 | self._run("ninja -C {build} -v".format(**dirs)) | 38 | self._run("ninja -C {build} -v".format(**dirs)) |
37 | self._run("DESTDIR={install} ninja -C {build} -v install".format(**dirs)) | 39 | self._run("DESTDIR={install} ninja -C {build} -v install".format(**dirs)) |
38 | 40 | ||