From patchwork Fri Oct 12 13:43:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 148763 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp755431lji; Fri, 12 Oct 2018 06:44:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV60VvHJhZLePIiCg5k+DimhKFB8TkwLWTnJikagjQx0kvpWTE+nnxAg5KxT+MQnL8J5GVrzR X-Received: by 2002:a63:5059:: with SMTP id q25-v6mr5574310pgl.171.1539351846262; Fri, 12 Oct 2018 06:44:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539351846; cv=none; d=google.com; s=arc-20160816; b=kX3b8/OxGj1Di16YcvrKOoj60bNtnO93XcIUNRkf0zX0YXyWlRy1AVs3UiO4wlpmh9 oUj3DJvi21o2XNVoCXmvxxnr96YRm4yAbJxHGXXX+VzFm4XfUYP/0bVqXycBicX2zmcv kQIjjjWqA3YdXCHEC0Xai5pZPg+70rWcj8Avl1JZA8lFlWY0Y/jzwb8dubkWy1kHLf6q hZ8rlI/tDld1rl8dGt5DtB+zMSBgNjcwM9FA8JmvMGwKWqbjgaQxbNmA8E6CpEyIo2p7 xK8LG09R+2jwDvtY1KjzsQ1nOneNuxsJPGfme2tbHTzDk5LK2IOkcaGRJam0n++jy5OP D4TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to; bh=yvRp7u6PwOvUPqzHDvb3sGg/qOBendRd8ULSvdpMZJQ=; b=VIvUKkfOJMF0ZHpORtMa8MObJDu/rWEhIcsx12XvwgT0mMZInTa3aPFFNRaunSyhfF j5dPqtyRldx011Asq1jianlivIko8qFJJR2XnPYPIInMZ7PnoMtYCxzIEJi04a2zSIyr 1RVHSNMMWyyiUlkd2y7SyVHYZ1NBUCB5PJ2wnGDLJr3bhxOTBuyiop8aZWj1lvzj4AU/ vLC7CctcGX5yKHIFRQZOeZ+vHPEbCXHC2jtF3ybSuI7C4ZlhzkuFKeq/7qB292Vz78G6 UizjISPE/G2yHXl0KbBVZ7SKY9W27k+ta4infAgu4HMu1Kjli089qVbFnOzdznYlA+x6 yB3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=R5urvRfu; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id d131-v6si1314418pga.37.2018.10.12.06.44.05; Fri, 12 Oct 2018 06:44:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=R5urvRfu; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id B385F79BA6; Fri, 12 Oct 2018 13:44:01 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by mail.openembedded.org (Postfix) with ESMTP id 98D4360069 for ; Fri, 12 Oct 2018 13:43:59 +0000 (UTC) Received: by mail-wr1-f46.google.com with SMTP id n1-v6so13493066wrt.10 for ; Fri, 12 Oct 2018 06:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=LlDKXL58lCLfnj0RnMKrDZiS+2UNkvDbGKV3a9lVm4Q=; b=R5urvRfulYse3hhSAXlyN9DKmd5kpdW7jO+KlwbS1NJ41VPXA5aycYhDXv3HaJNIKO z57kpp607HtiNN4swsSvKAaW545XcMzvKzGINK+xF3lTq6hqeT1xaWIRIMbMzD2FUHUe Mzazuiqm7cBrIMouhL0yERaWIeWl0QXWaan/XkIPVLbNn+jfXLuMtYiKqncJFMD1aSnJ Se1WVZBIrlPVoDVD3ytIbH0/meAZciufF9TXwpscY+PpjfL6ptPzPCTZNbEXQ2Ab8k1z iIfGcKD4gb5JDVGkDlClFczQNQ593FfQu3biK4Afx5AVs/N52pbd//DPNnPofmI/3KMv pxzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=LlDKXL58lCLfnj0RnMKrDZiS+2UNkvDbGKV3a9lVm4Q=; b=OS8EU4DaX0TMS1d4z8w7psskBBvS2dpU62Jn5rIif5+p+iWDwAMmDGk2t7+VvtxVKp 67qBLl+7a4VazfXVEw8fcXD21Ls8f+ihZw9pab4DNzUybPVY58yuJoZASnVZrz5nfEhA 5ERfV5cgf9k2LmMI0np48Jr2vi6SSJkM+pb7PNQGGSy3S840VHJTS8wKu01eqchki07v 9EZt2BCe2QbrDWL5bjWnZYIYpAKLaTGftVhLEXCmDSoSZFSTvUxI/8d6TTP8Xv2WWZdE cpQSztS2VHV3hupVflwUHqSJ9mSbxQXAHFnly/Ur0W4u1jDTA833/66OJgnD5zW4JMAg twjQ== X-Gm-Message-State: ABuFfoi06hJhOfKwDgWixgfSRZBz6k+hoxI6WEcqAXAlirf37tpWKDZm 3jVpM9pf3fy/Ld/AveScafzWmW9OFHk= X-Received: by 2002:a5d:6883:: with SMTP id h3-v6mr5404218wru.108.1539351839699; Fri, 12 Oct 2018 06:43:59 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id c24-v6sm1917763wre.44.2018.10.12.06.43.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Oct 2018 06:43:58 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Fri, 12 Oct 2018 14:43:55 +0100 Message-Id: <20181012134355.4654-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH] python3: add ptest runner X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Copy the Python 2 run-ptest script to execute the Python 3 test suite. Signed-off-by: Ross Burton --- meta/recipes-devtools/python/python3/run-ptest | 3 +++ meta/recipes-devtools/python/python3_3.5.6.bb | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-devtools/python/python3/run-ptest -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/python/python3/run-ptest b/meta/recipes-devtools/python/python3/run-ptest new file mode 100644 index 00000000000..3863c6d314f --- /dev/null +++ b/meta/recipes-devtools/python/python3/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +python3 -m test -v | sed -e '/\.\.\. ok/ s/^/PASS: /g' -e '/\.\.\. [ERROR|FAIL]/ s/^/FAIL: /g' -e '/\.\.\. skipped/ s/^/SKIP: /g' -e 's/ \.\.\. ok//g' -e 's/ \.\.\. ERROR//g' -e 's/ \.\.\. FAIL//g' -e 's/ \.\.\. skipped//g' diff --git a/meta/recipes-devtools/python/python3_3.5.6.bb b/meta/recipes-devtools/python/python3_3.5.6.bb index 95915447ab4..e007debeab2 100644 --- a/meta/recipes-devtools/python/python3_3.5.6.bb +++ b/meta/recipes-devtools/python/python3_3.5.6.bb @@ -44,9 +44,10 @@ SRC_URI += "\ file://0003-bpo-32947-Fixes-for-TLS-1.3-and-OpenSSL-1.1.1-GH-876.patch \ file://0004-bpo-33570-TLS-1.3-ciphers-for-OpenSSL-1.1.1-GH-6976.patch \ file://0005-bpo-30714-ALPN-changes-for-OpenSSL-1.1.0f-2305.patch \ + file://run-ptest \ " -inherit multilib_header python3native update-alternatives qemu +inherit multilib_header python3native update-alternatives qemu ptest MULTILIB_SUFFIX = "${@d.getVar('base_libdir',1).split('/')[-1]}" @@ -244,6 +245,8 @@ FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN}" PACKAGES += "${PN}-man" FILES_${PN}-man = "${datadir}/man" +RDEPENDS_${PN}-ptest = "${PN}-modules ${PN}-tests unzip bzip2" + BBCLASSEXTEND = "nativesdk" # We want bytecode precompiled .py files (.pyc's) by default