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 GalculatorTest(OERuntimeTestCase): 9 10 @classmethod 11 def setUpClass(cls): 12 uri = 'http://galculator.mnim.org/downloads/galculator-2.1.4.tar.bz2' 13 cls.project = TargetBuildProject(cls.tc.target, 14 uri, 15 dl_dir = cls.tc.td['DL_DIR']) 16 17 @classmethod 18 def tearDownClass(cls): 19 cls.project.clean() 20 21 @OETestID(1526) 22 @OETestDepends(['ssh.SSHTest.test_ssh']) 23 @OEHasPackage(['gcc']) 24 @OEHasPackage(['make']) 25 @OEHasPackage(['autoconf']) 26 def test_galculator(self): 27 self.project.download_archive() 28 self.project.run_configure() 29 self.project.run_make() 30