summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/sdk/cases/buildepoxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/sdk/cases/buildepoxy.py')
-rw-r--r--meta/lib/oeqa/sdk/cases/buildepoxy.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/lib/oeqa/sdk/cases/buildepoxy.py b/meta/lib/oeqa/sdk/cases/buildepoxy.py
index 385f8ccca8..147ee3e0ee 100644
--- a/meta/lib/oeqa/sdk/cases/buildepoxy.py
+++ b/meta/lib/oeqa/sdk/cases/buildepoxy.py
@@ -1,4 +1,6 @@
1# 1#
2# Copyright OpenEmbedded Contributors
3#
2# SPDX-License-Identifier: MIT 4# SPDX-License-Identifier: MIT
3# 5#
4 6
@@ -16,8 +18,9 @@ class EpoxyTest(OESDKTestCase):
16 Test that Meson builds correctly. 18 Test that Meson builds correctly.
17 """ 19 """
18 def setUp(self): 20 def setUp(self):
19 if not (self.tc.hasHostPackage("nativesdk-meson")): 21 if not (self.tc.hasHostPackage("nativesdk-meson") or
20 raise unittest.SkipTest("GalculatorTest class: SDK doesn't contain Meson") 22 self.tc.hasHostPackage("meson-native")):
23 raise unittest.SkipTest("EpoxyTest class: SDK doesn't contain Meson")
21 24
22 def test_epoxy(self): 25 def test_epoxy(self):
23 with tempfile.TemporaryDirectory(prefix="epoxy", dir=self.tc.sdk_dir) as testdir: 26 with tempfile.TemporaryDirectory(prefix="epoxy", dir=self.tc.sdk_dir) as testdir:
@@ -32,7 +35,7 @@ class EpoxyTest(OESDKTestCase):
32 self.assertTrue(os.path.isdir(dirs["source"])) 35 self.assertTrue(os.path.isdir(dirs["source"]))
33 os.makedirs(dirs["build"]) 36 os.makedirs(dirs["build"])
34 37
35 log = self._run("meson -Degl=no -Dglx=no -Dx11=false {build} {source}".format(**dirs)) 38 log = self._run("meson --warnlevel 1 -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 39 # Check that Meson thinks we're doing a cross build and not a native
37 self.assertIn("Build type: cross build", log) 40 self.assertIn("Build type: cross build", log)
38 self._run("ninja -C {build} -v".format(**dirs)) 41 self._run("ninja -C {build} -v".format(**dirs))