blob: a61d1e03043260eb433c8bd4048bbb4b23eeaf8d [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 BuildCpioTest(OERuntimeTestCase):
9
10 @classmethod
11 def setUpClass(cls):
Brad Bishopd7bf8c12018-02-25 22:55:05 -050012 uri = 'https://downloads.yoctoproject.org/mirror/sources/cpio-2.12.tar.gz'
Brad Bishop6e60e8b2018-02-01 10:27:11 -050013 cls.project = TargetBuildProject(cls.tc.target,
14 uri,
15 dl_dir = cls.tc.td['DL_DIR'])
Brad Bishop6e60e8b2018-02-01 10:27:11 -050016
17 @classmethod
18 def tearDownClass(cls):
19 cls.project.clean()
20
21 @OETestID(205)
Brad Bishop6e60e8b2018-02-01 10:27:11 -050022 @OETestDepends(['ssh.SSHTest.test_ssh'])
Brad Bishop977dc1a2019-02-06 16:01:43 -050023 @OEHasPackage(['gcc'])
24 @OEHasPackage(['make'])
25 @OEHasPackage(['autoconf'])
Brad Bishop6e60e8b2018-02-01 10:27:11 -050026 def test_cpio(self):
Brad Bishop977dc1a2019-02-06 16:01:43 -050027 self.project.download_archive()
Brad Bishop6e60e8b2018-02-01 10:27:11 -050028 self.project.run_configure()
29 self.project.run_make()
30 self.project.run_install()