test_python_scipy.py 848 B

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