buildlzip.py 969 B

123456789101112131415161718192021222324252627282930
  1. from oeqa.runtime.case import OERuntimeTestCase
  2. from oeqa.core.decorator.depends import OETestDepends
  3. from oeqa.runtime.decorator.package import OEHasPackage
  4. from oeqa.runtime.utils.targetbuildproject import TargetBuildProject
  5. class BuildLzipTest(OERuntimeTestCase):
  6. @classmethod
  7. def setUpClass(cls):
  8. uri = 'http://downloads.yoctoproject.org/mirror/sources'
  9. uri = '%s/lzip-1.19.tar.gz' % uri
  10. cls.project = TargetBuildProject(cls.tc.target,
  11. uri,
  12. dl_dir = cls.tc.td['DL_DIR'])
  13. @classmethod
  14. def tearDownClass(cls):
  15. cls.project.clean()
  16. @OETestDepends(['ssh.SSHTest.test_ssh'])
  17. @OEHasPackage(['gcc'])
  18. @OEHasPackage(['make'])
  19. @OEHasPackage(['autoconf'])
  20. def test_lzip(self):
  21. self.project.download_archive()
  22. self.project.run_configure()
  23. self.project.run_make()
  24. self.project.run_install()