diff options
| author | Ross Burton <ross.burton@intel.com> | 2016-06-21 15:33:11 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-01 16:22:48 +0100 |
| commit | 5c11e365e19357f721c49d076971567e7b64b61b (patch) | |
| tree | 0f7f360619ae9aa22926994c373d3542a1705e57 | |
| parent | b30556402803d23ba09d50a0fd4a61fb44b8ec7e (diff) | |
| download | poky-5c11e365e19357f721c49d076971567e7b64b61b.tar.gz | |
lib/oeqa: add Galculator to SDK and runtime tests
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 ]
(From OE-Core rev: 53fcfe4348a2ca727844f2b0bd3fca2902cbdda0)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/lib/oeqa/runtime/buildgalculator.py | 23 | ||||
| -rw-r--r-- | meta/lib/oeqa/sdk/buildgalculator.py | 24 |
2 files changed, 47 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/buildgalculator.py b/meta/lib/oeqa/runtime/buildgalculator.py new file mode 100644 index 0000000000..28ba29e5c2 --- /dev/null +++ b/meta/lib/oeqa/runtime/buildgalculator.py | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | from oeqa.oetest import oeRuntimeTest, skipModule | ||
| 2 | from oeqa.utils.decorators import * | ||
| 3 | from oeqa.utils.targetbuild import TargetBuildProject | ||
| 4 | |||
| 5 | def setUpModule(): | ||
| 6 | if not oeRuntimeTest.hasFeature("tools-sdk"): | ||
| 7 | skipModule("Image doesn't have tools-sdk in IMAGE_FEATURES") | ||
| 8 | |||
| 9 | class GalculatorTest(oeRuntimeTest): | ||
| 10 | @skipUnlessPassed("test_ssh") | ||
| 11 | def test_galculator(self): | ||
| 12 | try: | ||
| 13 | project = TargetBuildProject(oeRuntimeTest.tc.target, oeRuntimeTest.tc.d, | ||
| 14 | "http://galculator.mnim.org/downloads/galculator-2.1.4.tar.bz2") | ||
| 15 | project.download_archive() | ||
| 16 | |||
| 17 | self.assertEqual(project.run_configure(), 0, | ||
| 18 | msg="Running configure failed") | ||
| 19 | |||
| 20 | self.assertEqual(project.run_make(), 0, | ||
| 21 | msg="Running make failed") | ||
| 22 | finally: | ||
| 23 | project.clean() | ||
diff --git a/meta/lib/oeqa/sdk/buildgalculator.py b/meta/lib/oeqa/sdk/buildgalculator.py new file mode 100644 index 0000000000..be14d222c2 --- /dev/null +++ b/meta/lib/oeqa/sdk/buildgalculator.py | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | from oeqa.oetest import oeSDKTest, skipModule | ||
| 2 | from oeqa.utils.decorators import * | ||
| 3 | from oeqa.utils.targetbuild import SDKBuildProject | ||
| 4 | |||
| 5 | def setUpModule(): | ||
| 6 | if not (oeSDKTest.hasPackage("gtk+3") or oeSDKTest.hasPackage("libgtk-3.0")): | ||
| 7 | skipModule("Image doesn't have gtk+3 in manifest") | ||
| 8 | |||
| 9 | class GalculatorTest(oeSDKTest): | ||
| 10 | def test_galculator(self): | ||
| 11 | try: | ||
| 12 | project = SDKBuildProject(oeSDKTest.tc.sdktestdir + "/galculator/", | ||
| 13 | oeSDKTest.tc.sdkenv, oeSDKTest.tc.d, | ||
| 14 | "http://galculator.mnim.org/downloads/galculator-2.1.4.tar.bz2") | ||
| 15 | |||
| 16 | project.download_archive() | ||
| 17 | |||
| 18 | self.assertEqual(project.run_configure(), 0, | ||
| 19 | msg="Running configure failed") | ||
| 20 | |||
| 21 | self.assertEqual(project.run_make(), 0, | ||
| 22 | msg="Running make failed") | ||
| 23 | finally: | ||
| 24 | project.clean() | ||
