diff options
author | Jose Perez Carranza <jose.perez.carranza@linux.intel.com> | 2017-07-06 14:03:07 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-08 13:34:46 +0100 |
commit | 37e0cd0e917ad14f62770417d7f4fc8764b95f77 (patch) | |
tree | a379caea7ed81f822859687fe71fb081636fe005 /meta/lib/oeqa/runtime/cases/buildlzip.py | |
parent | 72bdc495479c1bf842ab97f9cfc80b01b2a35865 (diff) | |
download | poky-37e0cd0e917ad14f62770417d7f4fc8764b95f77.tar.gz |
oeqa/runtime: Replace buildiptables for buildlzip on runtime tests
Buildiptables test cases are conflicting with images built with “musl”
as standard C library, in order to avoid those issues lzip package was
selected to be used on the tests as this does not have any "musl"
dependency.
This patch is applicable for testimage tests
[YOCTO # 11713]
(From OE-Core rev: 41683e0ab316049e28b1f4ceaf39f0fe17722d92)
Signed-off-by: Jose Perez Carranza <jose.perez.carranza@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/cases/buildlzip.py')
-rw-r--r-- | meta/lib/oeqa/runtime/cases/buildlzip.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/cases/buildlzip.py b/meta/lib/oeqa/runtime/cases/buildlzip.py new file mode 100644 index 0000000000..ca3fead2e4 --- /dev/null +++ b/meta/lib/oeqa/runtime/cases/buildlzip.py | |||
@@ -0,0 +1,34 @@ | |||
1 | from oeqa.runtime.case import OERuntimeTestCase | ||
2 | from oeqa.core.decorator.depends import OETestDepends | ||
3 | from oeqa.core.decorator.oeid import OETestID | ||
4 | from oeqa.core.decorator.data import skipIfNotFeature | ||
5 | |||
6 | from oeqa.runtime.utils.targetbuildproject import TargetBuildProject | ||
7 | |||
8 | class BuildLzipTest(OERuntimeTestCase): | ||
9 | |||
10 | @classmethod | ||
11 | def setUpClass(cls): | ||
12 | uri = 'http://downloads.yoctoproject.org/mirror/sources' | ||
13 | uri = '%s/lzip-1.19.tar.gz' % uri | ||
14 | cls.project = TargetBuildProject(cls.tc.target, | ||
15 | uri, | ||
16 | dl_dir = cls.tc.td['DL_DIR']) | ||
17 | cls.project.download_archive() | ||
18 | |||
19 | @classmethod | ||
20 | def tearDownClass(cls): | ||
21 | cls.project.clean() | ||
22 | |||
23 | @OETestID(206) | ||
24 | @skipIfNotFeature('tools-sdk', | ||
25 | 'Test requires tools-sdk to be in IMAGE_FEATURES') | ||
26 | @OETestDepends(['ssh.SSHTest.test_ssh']) | ||
27 | def test_lzip(self): | ||
28 | self.project.run_configure() | ||
29 | self.project.run_make() | ||
30 | self.project.run_install() | ||
31 | |||
32 | @classmethod | ||
33 | def tearDownClass(self): | ||
34 | self.project.clean() | ||