1# 2# SPDX-License-Identifier: MIT 3# 4 5from oeqa.runtime.case import OERuntimeTestCase 6from oeqa.core.decorator.depends import OETestDepends 7from oeqa.runtime.decorator.package import OEHasPackage 8 9from oeqa.runtime.utils.targetbuildproject import TargetBuildProject 10 11class BuildCpioTest(OERuntimeTestCase): 12 13 @classmethod 14 def setUpClass(cls): 15 uri = 'https://downloads.yoctoproject.org/mirror/sources/cpio-2.13.tar.gz' 16 cls.project = TargetBuildProject(cls.tc.target, 17 uri, 18 dl_dir = cls.tc.td['DL_DIR']) 19 20 @classmethod 21 def tearDownClass(cls): 22 cls.project.clean() 23 24 @OETestDepends(['ssh.SSHTest.test_ssh']) 25 @OEHasPackage(['gcc']) 26 @OEHasPackage(['make']) 27 @OEHasPackage(['autoconf']) 28 def test_cpio(self): 29 self.project.download_archive() 30 self.project.run_configure('--disable-maintainer-mode','') 31 self.project.run_make() 32 self.project.run_install() 33