blob: 5b455a07906402bce004b7870ac03940059ea612 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001from oeqa.runtime.case import OERuntimeTestCase
2from oeqa.core.decorator.depends import OETestDepends
3from oeqa.core.decorator.oeid import OETestID
Brad Bishop977dc1a2019-02-06 16:01:43 -05004from oeqa.runtime.decorator.package import OEHasPackage
Brad Bishop6e60e8b2018-02-01 10:27:11 -05005
6from oeqa.runtime.utils.targetbuildproject import TargetBuildProject
7
8class 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 Bishop6e60e8b2018-02-01 10:27:11 -050017
18 @classmethod
19 def tearDownClass(cls):
20 cls.project.clean()
21
22 @OETestID(206)
Brad Bishop6e60e8b2018-02-01 10:27:11 -050023 @OETestDepends(['ssh.SSHTest.test_ssh'])
Brad Bishop977dc1a2019-02-06 16:01:43 -050024 @OEHasPackage(['gcc'])
25 @OEHasPackage(['make'])
26 @OEHasPackage(['autoconf'])
Brad Bishop6e60e8b2018-02-01 10:27:11 -050027 def test_lzip(self):
Brad Bishop977dc1a2019-02-06 16:01:43 -050028 self.project.download_archive()
Brad Bishop6e60e8b2018-02-01 10:27:11 -050029 self.project.run_configure()
30 self.project.run_make()
31 self.project.run_install()
32