blob: bc70b4146121849db144152c83819714d46fa208 [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001#
2# SPDX-License-Identifier: MIT
3#
4
Brad Bishop6e60e8b2018-02-01 10:27:11 -05005from oeqa.runtime.case import OERuntimeTestCase
6from oeqa.core.decorator.depends import OETestDepends
Brad Bishop977dc1a2019-02-06 16:01:43 -05007from oeqa.runtime.decorator.package import OEHasPackage
Brad Bishop6e60e8b2018-02-01 10:27:11 -05008
9from oeqa.runtime.utils.targetbuildproject import TargetBuildProject
10
11class 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 Bishop6e60e8b2018-02-01 10:27:11 -050020
21 @classmethod
22 def tearDownClass(cls):
23 cls.project.clean()
24
Brad Bishop6e60e8b2018-02-01 10:27:11 -050025 @OETestDepends(['ssh.SSHTest.test_ssh'])
Brad Bishop977dc1a2019-02-06 16:01:43 -050026 @OEHasPackage(['gcc'])
27 @OEHasPackage(['make'])
28 @OEHasPackage(['autoconf'])
Brad Bishop6e60e8b2018-02-01 10:27:11 -050029 def test_lzip(self):
Brad Bishop977dc1a2019-02-06 16:01:43 -050030 self.project.download_archive()
Brad Bishop6e60e8b2018-02-01 10:27:11 -050031 self.project.run_configure()
32 self.project.run_make()
33 self.project.run_install()
34