test_libshdata.py 782 B

12345678910111213141516171819202122232425
  1. import os
  2. import infra.basetest
  3. class TestLibshdata(infra.basetest.BRTest):
  4. config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \
  5. """
  6. BR2_PACKAGE_LIBSHDATA=y
  7. BR2_PACKAGE_LIBSHDATA_STRESS=y
  8. BR2_TARGET_ROOTFS_CPIO=y
  9. # BR2_TARGET_ROOTFS_TAR is not set
  10. """
  11. def test_run(self):
  12. img = os.path.join(self.builddir, "images", "rootfs.cpio")
  13. self.emulator.boot(arch="armv5",
  14. kernel="builtin",
  15. options=["-initrd", img])
  16. self.emulator.login()
  17. # Just run libshdata-stress.
  18. # This ensures that library are well compiled and that all dependencies
  19. # are met using Parrot Alchemy build system.
  20. self.assertRunOk("libshdata-stress")