blob: 2cfb3243dc793f793161263044d850a3a2babe9f [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001#
Patrick Williams92b42cb2022-09-03 06:53:57 -05002# Copyright OpenEmbedded Contributors
3#
Brad Bishopc342db32019-05-15 21:57:59 -04004# SPDX-License-Identifier: MIT
5#
6
Brad Bishop6e60e8b2018-02-01 10:27:11 -05007from oeqa.runtime.case import OERuntimeTestCase
8from oeqa.core.decorator.depends import OETestDepends
Brad Bishop977dc1a2019-02-06 16:01:43 -05009from oeqa.runtime.decorator.package import OEHasPackage
Brad Bishop6e60e8b2018-02-01 10:27:11 -050010
11from oeqa.runtime.utils.targetbuildproject import TargetBuildProject
12
13class GalculatorTest(OERuntimeTestCase):
14
15 @classmethod
16 def setUpClass(cls):
17 uri = 'http://galculator.mnim.org/downloads/galculator-2.1.4.tar.bz2'
18 cls.project = TargetBuildProject(cls.tc.target,
19 uri,
20 dl_dir = cls.tc.td['DL_DIR'])
Brad Bishop6e60e8b2018-02-01 10:27:11 -050021
22 @classmethod
23 def tearDownClass(cls):
24 cls.project.clean()
25
Brad Bishop6e60e8b2018-02-01 10:27:11 -050026 @OETestDepends(['ssh.SSHTest.test_ssh'])
Brad Bishop977dc1a2019-02-06 16:01:43 -050027 @OEHasPackage(['gcc'])
28 @OEHasPackage(['make'])
29 @OEHasPackage(['autoconf'])
Brad Bishop08902b02019-08-20 09:16:51 -040030 @OEHasPackage(['gtk+3'])
Brad Bishop6e60e8b2018-02-01 10:27:11 -050031 def test_galculator(self):
Brad Bishop977dc1a2019-02-06 16:01:43 -050032 self.project.download_archive()
Brad Bishop6e60e8b2018-02-01 10:27:11 -050033 self.project.run_configure()
34 self.project.run_make()