blob: 44f4f1be71832c61b7512e11e5ca17bf07d8d745 [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001#
Patrick Williams92b42cb2022-09-03 06:53:57 -05002# Copyright OpenEmbedded Contributors
3#
Brad Bishopc342db32019-05-15 21:57:59 -04004# SPDX-License-Identifier: MIT
5#
6
Brad Bishop6e60e8b2018-02-01 10:27:11 -05007from oeqa.runtime.case import OERuntimeTestCase
8from oeqa.core.decorator.depends import OETestDepends
Brad Bishop977dc1a2019-02-06 16:01:43 -05009from oeqa.runtime.decorator.package import OEHasPackage
Brad Bishop6e60e8b2018-02-01 10:27:11 -050010
11from oeqa.runtime.utils.targetbuildproject import TargetBuildProject
12
13class 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 Bishop6e60e8b2018-02-01 10:27:11 -050022
23 @classmethod
24 def tearDownClass(cls):
25 cls.project.clean()
26
Brad Bishop6e60e8b2018-02-01 10:27:11 -050027 @OETestDepends(['ssh.SSHTest.test_ssh'])
Brad Bishop977dc1a2019-02-06 16:01:43 -050028 @OEHasPackage(['gcc'])
29 @OEHasPackage(['make'])
30 @OEHasPackage(['autoconf'])
Brad Bishop6e60e8b2018-02-01 10:27:11 -050031 def test_lzip(self):
Brad Bishop977dc1a2019-02-06 16:01:43 -050032 self.project.download_archive()
Brad Bishop6e60e8b2018-02-01 10:27:11 -050033 self.project.run_configure()
34 self.project.run_make()
35 self.project.run_install()
36