buildlzip.py 1005 B

12345678910111213141516171819202122232425262728293031323334
  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 BuildLzipTest(OERuntimeTestCase):
  9. @classmethod
  10. def setUpClass(cls):
  11. uri = 'http://downloads.yoctoproject.org/mirror/sources'
  12. uri = '%s/lzip-1.19.tar.gz' % uri
  13. cls.project = TargetBuildProject(cls.tc.target,
  14. uri,
  15. dl_dir = cls.tc.td['DL_DIR'])
  16. @classmethod
  17. def tearDownClass(cls):
  18. cls.project.clean()
  19. @OETestDepends(['ssh.SSHTest.test_ssh'])
  20. @OEHasPackage(['gcc'])
  21. @OEHasPackage(['make'])
  22. @OEHasPackage(['autoconf'])
  23. def test_lzip(self):
  24. self.project.download_archive()
  25. self.project.run_configure()
  26. self.project.run_make()
  27. self.project.run_install()