From patchwork Wed Jul 12 02:40:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 786938 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 3x6jrT2wdwz9s7C for ; Wed, 12 Jul 2017 12:41:29 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="SSThG8oP"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4971187245; Wed, 12 Jul 2017 02:41:19 +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 eenZMPc_72cQ; Wed, 12 Jul 2017 02:41:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 84AE687277; Wed, 12 Jul 2017 02:41:18 +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 C14AB1C0ACA for ; Wed, 12 Jul 2017 02:41:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BD4DE2E0DF for ; Wed, 12 Jul 2017 02:41:04 +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 YC9ylJ27vk-s for ; Wed, 12 Jul 2017 02:41:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg0-f45.google.com (mail-pg0-f45.google.com [74.125.83.45]) by silver.osuosl.org (Postfix) with ESMTPS id 4C9B12D1F1 for ; Wed, 12 Jul 2017 02:41:04 +0000 (UTC) Received: by mail-pg0-f45.google.com with SMTP id u62so5328243pgb.3 for ; Tue, 11 Jul 2017 19:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mHkCa/AUJEvaKwABIl6FGYwGVlejLPpd47EuzvtKxzQ=; b=SSThG8oPYAOUNdGxAzU0XxhmqW+vfwMeKSilXlszeyC4Vcjb+KdpnIqIAc3pLkTEIo 9bAwOYo4ZtHbrqZsu18lYnxNatIaLMoSeVWFAeD2GjhiQYA6yV0KVxjS6e+4qtEdxKw8 /WnAx25EdWWciJJDt2rzGWMPpb6ugGiVZhNac1NmeRyyPCIM4cYs8rp7D4+QwfXMZ4Ii vl1v/EUhX3iwI6qrnseIyzCgMK/F6AhY9/rC4Js5VjgaU0lGezCFkqtAGQMp4alF7aBy OGG2Bv+gL7bJgyft+7p1wh7q/2TafdOBQVzlKZfTXewyPcPFLJJYYpp+KzDbfY0ZQERV BAqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mHkCa/AUJEvaKwABIl6FGYwGVlejLPpd47EuzvtKxzQ=; b=LL4AixH5U9Mtkq77KXApNdri0i12xjST5uApjU4uZ8l5aZfvIXKGT7l0olr84U1Nqo BFbK7HVZ2XuN9gRItlEm/7qPCVmWVRnQ1U/4gO6Tn4ZESPZ5rL2jQpv1hqozxQKbJb/h meOmQu5HcEn70Dl13c+sp3mWIc5mMxdZs2BHBoF6C/yXy278zR8D9m5PcdPY4MHdJRpV Elv2PslFe9iHPBpdOizNRt/D1bTfRRznFDVu4RWhPG/PDue72+4nPgXYoip/TXeOcCtq 37awe8nIeRggEzzXltB5187ukG6qQfaOVXDTgjT5iA7UIiryB3ifUFh4pot9+HChdOdT lfnQ== X-Gm-Message-State: AIVw110AJlCfiGuNcHAmyARTN1AP9Rd1NxbCIq9jXXxvrnccWVKpj9oC 58dOF4lY2xU95IZaCkE= X-Received: by 10.98.160.28 with SMTP id r28mr53595007pfe.86.1499827263723; Tue, 11 Jul 2017 19:41:03 -0700 (PDT) Received: from squirtle.westlake.spaceflightindustries.com ([173.226.206.194]) by smtp.gmail.com with ESMTPSA id h27sm1239640pfd.34.2017.07.11.19.41.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jul 2017 19:41:02 -0700 (PDT) From: Andrey Smirnov To: buildroot@buildroot.org Date: Tue, 11 Jul 2017 19:40:09 -0700 Message-Id: <20170712024009.2366-7-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170712024009.2366-1-andrew.smirnov@gmail.com> References: <20170712024009.2366-1-andrew.smirnov@gmail.com> Cc: Andrey Smirnov Subject: [Buildroot] [PATCH v2 6/6] testing/tests/package: add basic unit test for IPython X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" Signed-off-by: Andrey Smirnov --- support/testing/tests/package/test_ipython.py | 38 +++++++++++++++++++++++++++ 1 file changed, 38 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..dd8bf50 --- /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) + +