From: yegorslists at googlemail.com <yegorslists@googlemail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [RFC] testing: add python-crossbar tests
Date: Thu, 15 Feb 2018 14:38:05 +0100 [thread overview]
Message-ID: <1518701885-16545-1-git-send-email-yegorslists@googlemail.com> (raw)
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
next reply other threads:[~2018-02-15 13:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-15 13:38 yegorslists at googlemail.com [this message]
2018-02-15 13:41 ` [Buildroot] [RFC] testing: add python-crossbar tests 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1518701885-16545-1-git-send-email-yegorslists@googlemail.com \
--to=yegorslists@googlemail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.