buildcpio.py 944 B

12345678910111213141516171819202122232425262728
  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 BuildCpioTest(OERuntimeTestCase):
  6. @classmethod
  7. def setUpClass(cls):
  8. uri = 'https://downloads.yoctoproject.org/mirror/sources/cpio-2.12.tar.gz'
  9. cls.project = TargetBuildProject(cls.tc.target,
  10. uri,
  11. dl_dir = cls.tc.td['DL_DIR'])
  12. @classmethod
  13. def tearDownClass(cls):
  14. cls.project.clean()
  15. @OETestDepends(['ssh.SSHTest.test_ssh'])
  16. @OEHasPackage(['gcc'])
  17. @OEHasPackage(['make'])
  18. @OEHasPackage(['autoconf'])
  19. def test_cpio(self):
  20. self.project.download_archive()
  21. self.project.run_configure()
  22. self.project.run_make()
  23. self.project.run_install()