Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | from oeqa.runtime.case import OERuntimeTestCase |
| 2 | from oeqa.core.decorator.depends import OETestDepends |
| 3 | from oeqa.core.decorator.oeid import OETestID |
| 4 | from oeqa.core.decorator.data import skipIfNotFeature |
| 5 | |
| 6 | from oeqa.runtime.utils.targetbuildproject import TargetBuildProject |
| 7 | |
| 8 | class BuildCpioTest(OERuntimeTestCase): |
| 9 | |
| 10 | @classmethod |
| 11 | def setUpClass(cls): |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 12 | uri = 'https://downloads.yoctoproject.org/mirror/sources/cpio-2.12.tar.gz' |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 13 | cls.project = TargetBuildProject(cls.tc.target, |
| 14 | uri, |
| 15 | dl_dir = cls.tc.td['DL_DIR']) |
| 16 | cls.project.download_archive() |
| 17 | |
| 18 | @classmethod |
| 19 | def tearDownClass(cls): |
| 20 | cls.project.clean() |
| 21 | |
| 22 | @OETestID(205) |
| 23 | @skipIfNotFeature('tools-sdk', |
| 24 | 'Test requires tools-sdk to be in IMAGE_FEATURES') |
| 25 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
| 26 | def test_cpio(self): |
| 27 | self.project.run_configure() |
| 28 | self.project.run_make() |
| 29 | self.project.run_install() |