[Buildroot] [PATCH 3/3] testing/tests/package: add basic unit test for IPython

Andrey Smirnov andrew.smirnov at gmail.com
Tue Jul 4 18:58:07 UTC 2017


Signed-off-by: Andrey Smirnov <andrew.smirnov at gmail.com>
---
 support/testing/tests/package/test_ipython.py | 32 +++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 support/testing/tests/package/test_ipython.py

diff --git a/support/testing/tests/package/test_ipython.py b/support/testing/tests/package/test_ipython.py
new file mode 100644
index 0000000..164a768
--- /dev/null
+++ b/support/testing/tests/package/test_ipython.py
@@ -0,0 +1,32 @@
+import os
+
+import infra.basetest
+from tests.package.test_python import TestPythonBase
+
+class TestIPythonPy2(TestPythonBase):
+    config = TestPythonBase.config + \
+"""
+BR2_PACKAGE_PYTHON=y
+BR2_PACKAGE_PYTHON_IPYTHON=y
+"""
+    interpreter = "ipython"
+
+    def test_run(self):
+        self.login(40)  # It takes IPython a while to start on QEMU
+        self.math_floor_test()
+        self.libc_time_test()
+
+class TestIPythonPy3(TestPythonBase):
+    config = TestPythonBase.config + \
+"""
+BR2_PACKAGE_PYTHON3=y
+BR2_PACKAGE_PYTHON_IPYTHON=y
+"""
+    interpreter = "ipython"
+
+    def test_run(self):
+        self.login(40)  # It takes IPython a while to start on QEMU
+        self.math_floor_test()
+        self.libc_time_test()
+
+
-- 
2.9.4



More information about the buildroot mailing list