2
1

test_python_crossbar.py 813 B

1234567891011121314151617181920212223
  1. from tests.package.test_python import TestPythonPackageBase
  2. import os
  3. class TestPythonPy3Crossbar(TestPythonPackageBase):
  4. __test__ = True
  5. config = TestPythonPackageBase.config + \
  6. """
  7. BR2_PACKAGE_PYTHON3=y
  8. BR2_PACKAGE_PYTHON_CROSSBAR=y
  9. BR2_TARGET_ROOTFS_EXT2=y
  10. BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
  11. """
  12. sample_scripts = ["tests/package/sample_python_crossbar.py"]
  13. timeout = 60
  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()