blob: d0f91668b230f09aadb1aa4be54a6c752a5483c1 [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 BuildCpioTest(OERuntimeTestCase):
12
13 @classmethod
14 def setUpClass(cls):
Andrew Geissler82c905d2020-04-13 13:39:40 -050015 uri = 'https://downloads.yoctoproject.org/mirror/sources/cpio-2.13.tar.gz'
Brad Bishop6e60e8b2018-02-01 10:27:11 -050016 cls.project = TargetBuildProject(cls.tc.target,
17 uri,
18 dl_dir = cls.tc.td['DL_DIR'])
Brad Bishop6e60e8b2018-02-01 10:27:11 -050019
20 @classmethod
21 def tearDownClass(cls):
22 cls.project.clean()
23
Brad Bishop6e60e8b2018-02-01 10:27:11 -050024 @OETestDepends(['ssh.SSHTest.test_ssh'])
Brad Bishop977dc1a2019-02-06 16:01:43 -050025 @OEHasPackage(['gcc'])
26 @OEHasPackage(['make'])
27 @OEHasPackage(['autoconf'])
Brad Bishop6e60e8b2018-02-01 10:27:11 -050028 def test_cpio(self):
Brad Bishop977dc1a2019-02-06 16:01:43 -050029 self.project.download_archive()
Andrew Geissler82c905d2020-04-13 13:39:40 -050030 self.project.run_configure('--disable-maintainer-mode','')
Brad Bishop6e60e8b2018-02-01 10:27:11 -050031 self.project.run_make()
32 self.project.run_install()