diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-09 09:55:40 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-14 11:14:40 +0000 |
| commit | cd81cd155b59e1b75a3ce23375e66131b1bffc1e (patch) | |
| tree | 216af7aa4b0fe84b40ee90899902c4f41ade0267 /meta/lib/oeqa/runtime/cases/buildlzip.py | |
| parent | 8c4ba1afdde782c4a497fa501a61af6bff53375f (diff) | |
| download | poky-cd81cd155b59e1b75a3ce23375e66131b1bffc1e.tar.gz | |
oeqa/runtime/cases: Improve dependencies of kernel/gcc/build tests
Mark up these tests as needing a compiler, make and kernel source code
as appropriate, the image feature requirements can then be retired.
(From OE-Core rev: 9f64e6c25abdf494fb511e9cd401f8dcaa08be2a)
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 | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/meta/lib/oeqa/runtime/cases/buildlzip.py b/meta/lib/oeqa/runtime/cases/buildlzip.py index ca3fead2e4..5b455a0790 100644 --- a/meta/lib/oeqa/runtime/cases/buildlzip.py +++ b/meta/lib/oeqa/runtime/cases/buildlzip.py | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | from oeqa.runtime.case import OERuntimeTestCase | 1 | from oeqa.runtime.case import OERuntimeTestCase |
| 2 | from oeqa.core.decorator.depends import OETestDepends | 2 | from oeqa.core.decorator.depends import OETestDepends |
| 3 | from oeqa.core.decorator.oeid import OETestID | 3 | from oeqa.core.decorator.oeid import OETestID |
| 4 | from oeqa.core.decorator.data import skipIfNotFeature | 4 | from oeqa.runtime.decorator.package import OEHasPackage |
| 5 | 5 | ||
| 6 | from oeqa.runtime.utils.targetbuildproject import TargetBuildProject | 6 | from oeqa.runtime.utils.targetbuildproject import TargetBuildProject |
| 7 | 7 | ||
| @@ -14,21 +14,19 @@ class BuildLzipTest(OERuntimeTestCase): | |||
| 14 | cls.project = TargetBuildProject(cls.tc.target, | 14 | cls.project = TargetBuildProject(cls.tc.target, |
| 15 | uri, | 15 | uri, |
| 16 | dl_dir = cls.tc.td['DL_DIR']) | 16 | dl_dir = cls.tc.td['DL_DIR']) |
| 17 | cls.project.download_archive() | ||
| 18 | 17 | ||
| 19 | @classmethod | 18 | @classmethod |
| 20 | def tearDownClass(cls): | 19 | def tearDownClass(cls): |
| 21 | cls.project.clean() | 20 | cls.project.clean() |
| 22 | 21 | ||
| 23 | @OETestID(206) | 22 | @OETestID(206) |
| 24 | @skipIfNotFeature('tools-sdk', | ||
| 25 | 'Test requires tools-sdk to be in IMAGE_FEATURES') | ||
| 26 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 23 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
| 24 | @OEHasPackage(['gcc']) | ||
| 25 | @OEHasPackage(['make']) | ||
| 26 | @OEHasPackage(['autoconf']) | ||
| 27 | def test_lzip(self): | 27 | def test_lzip(self): |
| 28 | self.project.download_archive() | ||
| 28 | self.project.run_configure() | 29 | self.project.run_configure() |
| 29 | self.project.run_make() | 30 | self.project.run_make() |
| 30 | self.project.run_install() | 31 | self.project.run_install() |
| 31 | 32 | ||
| 32 | @classmethod | ||
| 33 | def tearDownClass(self): | ||
| 34 | self.project.clean() | ||
