test_python_boto3.py 804 B

1234567891011121314151617181920212223
  1. from tests.package.test_python import TestPythonPackageBase
  2. import os
  3. class TestPythonPy3Boto3(TestPythonPackageBase):
  4. __test__ = True
  5. config = TestPythonPackageBase.config + \
  6. """
  7. BR2_PACKAGE_PYTHON3=y
  8. BR2_PACKAGE_PYTHON_BOTO3=y
  9. BR2_TARGET_ROOTFS_EXT2=y
  10. BR2_TARGET_ROOTFS_EXT2_SIZE="250M"
  11. """
  12. sample_scripts = ["tests/package/sample_python_boto3.py"]
  13. timeout = 20
  14. def login(self):
  15. ext2_file = os.path.join(self.builddir, "images", "rootfs.ext2")
  16. self.emulator.boot(arch="armv5",
  17. kernel="builtin",
  18. options=["-drive", "file=%s,if=scsi,format=raw" % ext2_file],
  19. kernel_cmdline=["rootwait", "root=/dev/sda"])
  20. self.emulator.login()