All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [RFC] testing: add python-crossbar tests
@ 2018-02-15 13:38 yegorslists at googlemail.com
  2018-02-15 13:41 ` Yegor Yefremov
  2018-02-22  1:53 ` Ricardo Martincoski
  0 siblings, 2 replies; 10+ messages in thread
From: yegorslists at googlemail.com @ 2018-02-15 13:38 UTC (permalink / raw)
  To: buildroot

From: Yegor Yefremov <yegorslists@googlemail.com>

This test invokes "crossbar version" command, that checks
all dependencies found in setup.py files and prints some
system related information.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 .../testing/tests/package/test_python_crossbar.py  | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 support/testing/tests/package/test_python_crossbar.py

diff --git a/support/testing/tests/package/test_python_crossbar.py b/support/testing/tests/package/test_python_crossbar.py
new file mode 100644
index 0000000..a67bdea
--- /dev/null
+++ b/support/testing/tests/package/test_python_crossbar.py
@@ -0,0 +1,27 @@
+from tests.package.test_python import TestPythonBase
+
+class TestPythonCrossbar(TestPythonBase):
+    def version_test(self, timeout=-1):
+        cmd = self.interpreter + " -m crossbar version"
+        _, exit_code = self.emulator.run(cmd, timeout)
+        self.assertEqual(exit_code, 0)
+
+class TestPythonPy2Crossbar(TestPythonCrossbar):
+    config = TestPythonBase.config + \
+"""
+BR2_PACKAGE_PYTHON=y
+BR2_PACKAGE_PYTHON_CROSSBAR=y
+"""
+    def test_run(self):
+        self.login()
+        self.version_test(60)
+
+class TestPythonPy3Crossbar(TestPythonCrossbar):
+    config = TestPythonBase.config + \
+"""
+BR2_PACKAGE_PYTHON3=y
+BR2_PACKAGE_PYTHON_CROSSBAR=y
+"""
+    def test_run(self):
+        self.login()
+        self.version_test(60)
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-10-21  7:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-15 13:38 [Buildroot] [RFC] testing: add python-crossbar tests yegorslists at googlemail.com
2018-02-15 13:41 ` Yegor Yefremov
2018-02-16  1:16   ` Ricardo Martincoski
2018-09-17 13:55     ` Thomas Petazzoni
2018-09-18  2:31       ` Ricardo Martincoski
2018-09-18  6:20         ` Yegor Yefremov
2018-10-20 15:49           ` Asaf Kahlon
2018-10-21  5:01             ` Ricardo Martincoski
2018-10-21  7:28               ` Thomas Petazzoni
2018-02-22  1:53 ` Ricardo Martincoski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.