]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - support/testing/tests/package/test_ipython.py
a943101372aec1bf2ba1e1a9d85132c9254f0692
[coffee/buildroot.git] / support / testing / tests / package / test_ipython.py
1 import os
2
3 from tests.package.test_python import TestPythonBase
4 #
5 # The following pythong tests are not being used here:
6 #
7 # - version_test: IPython does not support --version option
8 #
9 # - zlib_test: IPython does not return a non-zero code the way CPython
10 #              does, so this test ends up being a false-negative
11 #
12 class TestIPythonPy2(TestPythonBase):
13     config = TestPythonBase.config + \
14         """
15         BR2_PACKAGE_PYTHON=y
16         BR2_PACKAGE_PYTHON_IPYTHON=y
17         """
18     interpreter = "ipython"
19
20     def test_run(self):
21         self.login()
22         self.math_floor_test(40)
23         self.libc_time_test(40)
24
25 class TestIPythonPy3(TestPythonBase):
26     config = TestPythonBase.config + \
27         """
28         BR2_PACKAGE_PYTHON3=y
29         BR2_PACKAGE_PYTHON_IPYTHON=y
30         """
31     interpreter = "ipython"
32
33     def test_run(self):
34         self.login()
35         self.math_floor_test(40)
36         self.libc_time_test(40)
37
38