[OE-core] [PATCH 1/3] oeqa/sdk: add Galculator to the SDK test

Ross Burton ross.burton at intel.com
Tue Jun 21 14:39:29 UTC 2016


This is a GTK+3 application, so we don't need to ship GTK+ 2 in Sato just for
the SDK test suite.

[ YOCTO #9780 ]

Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/lib/oeqa/sdk/buildgalculator.py | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 meta/lib/oeqa/sdk/buildgalculator.py

diff --git a/meta/lib/oeqa/sdk/buildgalculator.py b/meta/lib/oeqa/sdk/buildgalculator.py
new file mode 100644
index 0000000..f797cac
--- /dev/null
+++ b/meta/lib/oeqa/sdk/buildgalculator.py
@@ -0,0 +1,23 @@
+from oeqa.oetest import oeSDKTest, skipModule
+from oeqa.utils.decorators import *
+from oeqa.utils.targetbuild import SDKBuildProject
+
+def setUpModule():
+    if not (oeSDKTest.hasPackage("gtk+3") or oeSDKTest.hasPackage("libgtk-3.0")):
+        skipModule("Image doesn't have gtk+3 in manifest")
+
+class GalculatorTest(oeSDKTest):
+
+    def test_galculator(self):
+        project = SDKBuildProject(oeSDKTest.tc.sdktestdir + "/galculator/",
+                                  oeSDKTest.tc.sdkenv, oeSDKTest.tc.d,
+                                  "http://galculator.mnim.org/downloads/galculator-2.1.4.tar.bz2")
+        project.download_archive()
+
+        self.assertEqual(project.run_configure(), 0,
+                        msg="Running configure failed")
+
+        self.assertEqual(project.run_make(), 0,
+                        msg="Running make failed")
+
+        project.clean()
-- 
2.8.1




More information about the Openembedded-core mailing list