From patchwork Tue Dec 4 04:08:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Weber X-Patchwork-Id: 1007434 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=) Authentication-Results: ozlabs.org; dmarc=fail (p=reject dis=none) header.from=collins.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=collins.com header.i=@collins.com header.b="BRLz5AOj"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4387fF5Px5z9s8J for ; Tue, 4 Dec 2018 15:09:09 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id AA87A8615D; Tue, 4 Dec 2018 04:09:06 +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 oV9aTILzsERv; Tue, 4 Dec 2018 04:09:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 02967869F5; Tue, 4 Dec 2018 04:09:03 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 68B0A1C2BE9 for ; Tue, 4 Dec 2018 04:08:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6600881ED1 for ; Tue, 4 Dec 2018 04:08:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vwK8Z6Yo0qob for ; Tue, 4 Dec 2018 04:08:57 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mx0a-00105401.pphosted.com (mx0a-00105401.pphosted.com [67.231.144.184]) by hemlock.osuosl.org (Postfix) with ESMTPS id 3C7DD84845 for ; Tue, 4 Dec 2018 04:08:57 +0000 (UTC) Received: from pps.filterd (m0072139.ppops.net [127.0.0.1]) by m0072139.ppops.net (8.16.0.22/8.16.0.22) with SMTP id wB4453kn037387; Mon, 3 Dec 2018 23:08:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=collins.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=POD051818; bh=ldEBj1kAkSrGjvEdeHvJrkx7fEr+pczVYu5rJGaO07g=; b=BRLz5AOjJQf/8YXATDP8CHEk9jf9NN3PzGg5NCr1akk7g8XUGEX3ZDzYM+wlNVU4zlpF JnHBYEgYg4Np1IHZV9tcK9fg9Aw7cQEmyOJtMfsVA7eavJgRQOGx5vGWsIpgCNanwNhN 8U6k9knHSdRNffpL40hm03GueC68/9+fomS73yR1oWVgZ32HPGLLy8ZvIzAGd8mews4h g9KfpmzdqUzcV9rHs81lemHIHu83G6z0tjOH27XbZQrCBgwl4rp0sf0hn3aPTItCi8SV dFHrtLHvJ/nOGu0NFP4JNmXN8dVXNcWJPZFl9qLPrVCffVXjE/A5bHesM6uIikkKbHYF Mw== Received: from xmnpv38.utc.com ([167.17.255.18]) by m0072139.ppops.net with ESMTP id 2p5g62a03g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 03 Dec 2018 23:08:56 -0500 Received: from uusmna21.corp.utc.com (uusmna21.corp.utc.com [159.82.227.11]) by xmnpv38.utc.com (8.16.0.21/8.16.0.21) with ESMTPS id wB448swD080620 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 3 Dec 2018 23:08:54 -0500 Received: from secvs01.rockwellcollins.com ([10.172.224.19]) by uusmna21.corp.utc.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id wB448qUq011047 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 3 Dec 2018 23:08:53 -0500 Received: from ofwgwc03.rockwellcollins.com (HELO ciulimr02.rockwellcollins.com) ([205.175.225.12]) by secvs01.rockwellcollins.com with ESMTP; 03 Dec 2018 22:08:52 -0600 X-Received: from largo.rockwellcollins.com (unknown [192.168.140.76]) by ciulimr02.rockwellcollins.com (Postfix) with ESMTP id A3BE12007A; Mon, 3 Dec 2018 22:08:52 -0600 (CST) From: Matt Weber To: buildroot@buildroot.org Date: Mon, 3 Dec 2018 22:08:47 -0600 Message-Id: <1543896530-33550-4-git-send-email-matthew.weber@rockwellcollins.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1543896530-33550-1-git-send-email-matthew.weber@rockwellcollins.com> References: <1543896530-33550-1-git-send-email-matthew.weber@rockwellcollins.com> X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812040034 Subject: [Buildroot] [PATCH v5 4/7] testing/infra/basetest: support br2-external X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ricardo Martincoski MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Ricardo Martincoski Some upcoming test cases can use one or more br2-external trees as fixtures that provide packages used only in runtime tests. Add support for br2-external into the BRTest class. Any test case can then provide a list of paths for be used as br2-external trees during the build of the image to be tested. Signed-off-by: Ricardo Martincoski Cc: Arnout Vandecappelle Signed-off-by: Matt Weber --- Changes v2 - New from: http://patchwork.ozlabs.org/patch/912354/ v2 -> v3 [Ricardo - Updated patch commit description context. v4 - None v5 - Rebased post 2018.11 on master --- support/testing/infra/basetest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/support/testing/infra/basetest.py b/support/testing/infra/basetest.py index 5014fef..8413943 100644 --- a/support/testing/infra/basetest.py +++ b/support/testing/infra/basetest.py @@ -30,6 +30,7 @@ MINIMAL_CONFIG = \ class BRTest(unittest.TestCase): config = None + br2_external = list() downloaddir = None outputdir = None logtofile = True @@ -58,7 +59,7 @@ class BRTest(unittest.TestCase): if not self.b.is_finished(): self.show_msg("Building") - self.b.configure() + self.b.configure(["BR2_EXTERNAL={}".format(":".join(self.br2_external))]) self.b.build() self.show_msg("Building done")