buildgalculator.py 947 B

12345678910111213141516171819202122232425262728293031
  1. #
  2. # SPDX-License-Identifier: MIT
  3. #
  4. from oeqa.runtime.case import OERuntimeTestCase
  5. from oeqa.core.decorator.depends import OETestDepends
  6. from oeqa.runtime.decorator.package import OEHasPackage
  7. from oeqa.runtime.utils.targetbuildproject import TargetBuildProject
  8. class GalculatorTest(OERuntimeTestCase):
  9. @classmethod
  10. def setUpClass(cls):
  11. uri = 'http://galculator.mnim.org/downloads/galculator-2.1.4.tar.bz2'
  12. cls.project = TargetBuildProject(cls.tc.target,
  13. uri,
  14. dl_dir = cls.tc.td['DL_DIR'])
  15. @classmethod
  16. def tearDownClass(cls):
  17. cls.project.clean()
  18. @OETestDepends(['ssh.SSHTest.test_ssh'])
  19. @OEHasPackage(['gcc'])
  20. @OEHasPackage(['make'])
  21. @OEHasPackage(['autoconf'])
  22. def test_galculator(self):
  23. self.project.download_archive()
  24. self.project.run_configure()
  25. self.project.run_make()