diff options
| -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() | ||
