blob: e5cc3e2888525e957086b89e01ad729b4508f60e [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001#
2# SPDX-License-Identifier: MIT
3#
4
Brad Bishop6e60e8b2018-02-01 10:27:11 -05005from oeqa.runtime.case import OERuntimeTestCase
6from oeqa.core.decorator.depends import OETestDepends
Brad Bishop977dc1a2019-02-06 16:01:43 -05007from oeqa.runtime.decorator.package import OEHasPackage
Brad Bishop6e60e8b2018-02-01 10:27:11 -05008
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'])
Brad Bishop6e60e8b2018-02-01 10:27:11 -050019
20 @classmethod
21 def tearDownClass(cls):
22 cls.project.clean()
23
Brad Bishop6e60e8b2018-02-01 10:27:11 -050024 @OETestDepends(['ssh.SSHTest.test_ssh'])
Brad Bishop977dc1a2019-02-06 16:01:43 -050025 @OEHasPackage(['gcc'])
26 @OEHasPackage(['make'])
27 @OEHasPackage(['autoconf'])
Brad Bishop08902b02019-08-20 09:16:51 -040028 @OEHasPackage(['gtk+3'])
Brad Bishop6e60e8b2018-02-01 10:27:11 -050029 def test_galculator(self):
Brad Bishop977dc1a2019-02-06 16:01:43 -050030 self.project.download_archive()
Brad Bishop6e60e8b2018-02-01 10:27:11 -050031 self.project.run_configure()
32 self.project.run_make()