Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | from oeqa.runtime.case import OERuntimeTestCase |
| 2 | from oeqa.core.decorator.depends import OETestDepends |
| 3 | from oeqa.core.decorator.oeid import OETestID |
Brad Bishop | 977dc1a | 2019-02-06 16:01:43 -0500 | [diff] [blame] | 4 | from oeqa.runtime.decorator.package import OEHasPackage |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 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']) |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 17 | |
| 18 | @classmethod |
| 19 | def tearDownClass(cls): |
| 20 | cls.project.clean() |
| 21 | |
| 22 | @OETestID(206) |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 23 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
Brad Bishop | 977dc1a | 2019-02-06 16:01:43 -0500 | [diff] [blame] | 24 | @OEHasPackage(['gcc']) |
| 25 | @OEHasPackage(['make']) |
| 26 | @OEHasPackage(['autoconf']) |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 27 | def test_lzip(self): |
Brad Bishop | 977dc1a | 2019-02-06 16:01:43 -0500 | [diff] [blame] | 28 | self.project.download_archive() |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 29 | self.project.run_configure() |
| 30 | self.project.run_make() |
| 31 | self.project.run_install() |
| 32 | |