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