From patchwork Thu Feb 15 13:38:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yegor Yefremov X-Patchwork-Id: 873813 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zhy5g2tWXz9t2f for ; Fri, 16 Feb 2018 00:38:14 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6503D88560; Thu, 15 Feb 2018 13:38:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h7xSuxHI9u-3; Thu, 15 Feb 2018 13:38:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 264F688537; Thu, 15 Feb 2018 13:38:10 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id D5F2D1C3ED0 for ; Thu, 15 Feb 2018 13:38:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D23462E86B for ; Thu, 15 Feb 2018 13:38:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H+UwJOECXvzu for ; Thu, 15 Feb 2018 13:38:07 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.visionsystems.de (mail.visionsystems.de [213.209.99.202]) by silver.osuosl.org (Postfix) with ESMTP id 9086E26F16 for ; Thu, 15 Feb 2018 13:38:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.visionsystems.de (Postfix) with ESMTP id A7255362D94; Thu, 15 Feb 2018 14:38:07 +0100 (CET) Received: from mail.visionsystems.de ([127.0.0.1]) by localhost (mail.visionsystems.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05721-10; Thu, 15 Feb 2018 14:38:07 +0100 (CET) Received: from visionsystems.de (kallisto.visionsystems.local [192.168.1.3]) by mail.visionsystems.de (Postfix) with ESMTP id 83440362D8B; Thu, 15 Feb 2018 14:38:07 +0100 (CET) Received: from development1.visionsystems.de ([192.168.1.36]) by visionsystems.de with Microsoft SMTPSVC(6.0.3790.4675); Thu, 15 Feb 2018 14:38:06 +0100 From: yegorslists@googlemail.com To: buildroot@buildroot.org Date: Thu, 15 Feb 2018 14:38:05 +0100 Message-Id: <1518701885-16545-1-git-send-email-yegorslists@googlemail.com> X-Mailer: git-send-email 2.1.4 X-OriginalArrivalTime: 15 Feb 2018 13:38:06.0243 (UTC) FILETIME=[35BC8730:01D3A662] X-Virus-Scanned: amavisd-new at visionsystems.de Subject: [Buildroot] [RFC] testing: add python-crossbar tests X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Yegor Yefremov 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 --- .../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)