summaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2017-07-11 19:40:09 -0700
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-22 22:55:05 +0200
commitd2fe2686d7eea40e8e46304abf0914982ede6c3f (patch)
tree468ad16953534e24d9b8cb5c87c9aae2eb131c5e /support
parent8559c55ed315caf60f95291222f11529f396ced5 (diff)
downloadbuildroot-d2fe2686d7eea40e8e46304abf0914982ede6c3f.tar.gz
buildroot-d2fe2686d7eea40e8e46304abf0914982ede6c3f.zip
testing/tests/package: add basic unit test for IPython
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> [Thomas: update .gitlab-ci.yml.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support')
-rw-r--r--support/testing/tests/package/test_ipython.py38
1 files changed, 38 insertions, 0 deletions
diff --git a/support/testing/tests/package/test_ipython.py b/support/testing/tests/package/test_ipython.py
new file mode 100644
index 0000000000..dd8bf500a3
--- /dev/null
+++ b/support/testing/tests/package/test_ipython.py
@@ -0,0 +1,38 @@
+import os
+
+from tests.package.test_python import TestPythonBase
+#
+# The following pythong tests are not being used here:
+#
+# - version_test: IPython does not support --version option
+#
+# - zlib_test: IPython does not return a non-zero code the way CPython
+# does, so this test ends up being a false-negative
+#
+class TestIPythonPy2(TestPythonBase):
+ config = TestPythonBase.config + \
+"""
+BR2_PACKAGE_PYTHON=y
+BR2_PACKAGE_PYTHON_IPYTHON=y
+"""
+ interpreter = "ipython"
+
+ def test_run(self):
+ self.login()
+ self.math_floor_test(40)
+ self.libc_time_test(40)
+
+class TestIPythonPy3(TestPythonBase):
+ config = TestPythonBase.config + \
+"""
+BR2_PACKAGE_PYTHON3=y
+BR2_PACKAGE_PYTHON_IPYTHON=y
+"""
+ interpreter = "ipython"
+
+ def test_run(self):
+ self.login()
+ self.math_floor_test(40)
+ self.libc_time_test(40)
+
+
OpenPOWER on IntegriCloud