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