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