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 GalculatorTest(OERuntimeTestCase): 12 13 @classmethod 14 def setUpClass(cls): 15 uri = 'http://galculator.mnim.org/downloads/galculator-2.1.4.tar.bz2' 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 @OEHasPackage(['gtk+3']) 29 def test_galculator(self): 30 self.project.download_archive() 31 self.project.run_configure() 32 self.project.run_make() 33