buildcpio.py 980 B

1234567891011121314151617181920212223242526272829303132
  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 BuildCpioTest(OERuntimeTestCase):
  9. @classmethod
  10. def setUpClass(cls):
  11. uri = 'https://downloads.yoctoproject.org/mirror/sources/cpio-2.12.tar.gz'
  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_cpio(self):
  23. self.project.download_archive()
  24. self.project.run_configure()
  25. self.project.run_make()
  26. self.project.run_install()