diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2016-10-31 17:20:48 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-23 12:05:19 +0000 |
commit | 2726c26efe8e135bb63408cad38509a89e49fa0d (patch) | |
tree | 3596d1e4294e18b57ad4763c149abf913f6671e3 /meta/lib/oeqa/sdk/cases/buildgalculator.py | |
parent | 8d3640b90dca79f7a79b3a62de5cf5326577434e (diff) | |
download | poky-2726c26efe8e135bb63408cad38509a89e49fa0d.tar.gz |
oeqa/sdk: Move test cases inside cases directory
For match with the new structure of the OEQA framework.
In the new framework Test component base directory in this case
sdk module will contain case and context implementations.
[YOCTO #10599]
(From OE-Core rev: 57af8ee4021c302bd351adf03e6d85274ad7efd5)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/sdk/cases/buildgalculator.py')
-rw-r--r-- | meta/lib/oeqa/sdk/cases/buildgalculator.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/lib/oeqa/sdk/cases/buildgalculator.py b/meta/lib/oeqa/sdk/cases/buildgalculator.py new file mode 100644 index 0000000000..dc2fa9ce19 --- /dev/null +++ b/meta/lib/oeqa/sdk/cases/buildgalculator.py | |||
@@ -0,0 +1,27 @@ | |||
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 | # regenerate configure to get support for --with-libtool-sysroot | ||
19 | legacy_preconf=("autoreconf -i -f -I ${OECORE_TARGET_SYSROOT}/usr/share/aclocal -I m4;") | ||
20 | |||
21 | self.assertEqual(project.run_configure(extra_cmds=legacy_preconf), | ||
22 | 0, msg="Running configure failed") | ||
23 | |||
24 | self.assertEqual(project.run_make(), 0, | ||
25 | msg="Running make failed") | ||
26 | finally: | ||
27 | project.clean() | ||