Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 1 | # |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 2 | # Copyright OpenEmbedded Contributors |
| 3 | # |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 4 | # SPDX-License-Identifier: MIT |
| 5 | # |
| 6 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 7 | from oeqa.runtime.case import OERuntimeTestCase |
| 8 | from oeqa.core.decorator.depends import OETestDepends |
Brad Bishop | 977dc1a | 2019-02-06 16:01:43 -0500 | [diff] [blame] | 9 | from oeqa.runtime.decorator.package import OEHasPackage |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 10 | |
| 11 | from oeqa.runtime.utils.targetbuildproject import TargetBuildProject |
| 12 | |
| 13 | class BuildLzipTest(OERuntimeTestCase): |
| 14 | |
| 15 | @classmethod |
| 16 | def setUpClass(cls): |
| 17 | uri = 'http://downloads.yoctoproject.org/mirror/sources' |
| 18 | uri = '%s/lzip-1.19.tar.gz' % uri |
| 19 | cls.project = TargetBuildProject(cls.tc.target, |
| 20 | uri, |
| 21 | dl_dir = cls.tc.td['DL_DIR']) |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 22 | |
| 23 | @classmethod |
| 24 | def tearDownClass(cls): |
| 25 | cls.project.clean() |
| 26 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 27 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
Brad Bishop | 977dc1a | 2019-02-06 16:01:43 -0500 | [diff] [blame] | 28 | @OEHasPackage(['gcc']) |
| 29 | @OEHasPackage(['make']) |
| 30 | @OEHasPackage(['autoconf']) |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 31 | def test_lzip(self): |
Brad Bishop | 977dc1a | 2019-02-06 16:01:43 -0500 | [diff] [blame] | 32 | self.project.download_archive() |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 33 | self.project.run_configure() |
| 34 | self.project.run_make() |
| 35 | self.project.run_install() |
| 36 | |