From 53fcfe4348a2ca727844f2b0bd3fca2902cbdda0 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 21 Jun 2016 15:33:11 +0100 Subject: 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 ] Signed-off-by: Ross Burton --- meta/lib/oeqa/runtime/buildgalculator.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 meta/lib/oeqa/runtime/buildgalculator.py (limited to 'meta/lib/oeqa/runtime/buildgalculator.py') 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 @@ +from oeqa.oetest import oeRuntimeTest, skipModule +from oeqa.utils.decorators import * +from oeqa.utils.targetbuild import TargetBuildProject + +def setUpModule(): + if not oeRuntimeTest.hasFeature("tools-sdk"): + skipModule("Image doesn't have tools-sdk in IMAGE_FEATURES") + +class GalculatorTest(oeRuntimeTest): + @skipUnlessPassed("test_ssh") + def test_galculator(self): + try: + project = TargetBuildProject(oeRuntimeTest.tc.target, oeRuntimeTest.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") + finally: + project.clean() -- cgit 1.2.3-korg