From patchwork Mon Jul 10 20:40:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnout Vandecappelle X-Patchwork-Id: 786381 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3x5xtd2hcKz9s3T for ; Tue, 11 Jul 2017 06:40:41 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 82E8C888B0; Mon, 10 Jul 2017 20:40:36 +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 5V97Jh0dfouK; Mon, 10 Jul 2017 20:40:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id E4D88889E6; Mon, 10 Jul 2017 20:40:35 +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 D338B1CEAAB for ; Mon, 10 Jul 2017 20:40:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id CCBE78886A for ; Mon, 10 Jul 2017 20:40:33 +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 Sgx64B1KrjBN for ; Mon, 10 Jul 2017 20:40:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from exchange.essensium.com (220.77.144.195.ipv4.evonet.be [195.144.77.220]) by hemlock.osuosl.org (Postfix) with ESMTPS id 3258B88896 for ; Mon, 10 Jul 2017 20:40:33 +0000 (UTC) Received: from localhost.localdomain (10.3.7.11) by beleexch01.local.ess-mail.com (10.3.7.8) with Microsoft SMTP Server (TLS) id 15.0.847.32; Mon, 10 Jul 2017 22:40:19 +0200 From: "Arnout Vandecappelle (Essensium/Mind)" To: Date: Mon, 10 Jul 2017 22:40:07 +0200 Message-ID: <20170710204007.8402-2-arnout@mind.be> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170710204007.8402-1-arnout@mind.be> References: <20170710204007.8402-1-arnout@mind.be> MIME-Version: 1.0 X-Originating-IP: [10.3.7.11] X-ClientProxiedBy: beleexch01.local.ess-mail.com (10.3.7.8) To beleexch01.local.ess-mail.com (10.3.7.8) Subject: [Buildroot] [PATCH 2/2] support/testing: add test of BR2_CCACHE with an external toolchain 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: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" We reuse TestExternalToolchainBuildrootuClibc and add ccache to its configuration. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) Reviewed-by: Ricardo Martincoski Tested-by: Ricardo Martincoski --- support/testing/tests/toolchain/test_external.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/support/testing/tests/toolchain/test_external.py b/support/testing/tests/toolchain/test_external.py index afb4bb0b50..57e2f11451 100644 --- a/support/testing/tests/toolchain/test_external.py +++ b/support/testing/tests/toolchain/test_external.py @@ -229,3 +229,15 @@ BR2_TOOLCHAIN_EXTERNAL_CXX=y kernel="builtin", options=["-initrd", img]) self.emulator.login() + +class TestExternalToolchainCCache(TestExternalToolchainBuildrootuClibc): + extraconfig = \ +""" +BR2_CCACHE=y +BR2_CCACHE_DIR="{builddir}/ccache-dir" +""" + + def __init__(self, names): + super(TestExternalToolchainBuildrootuClibc, self).__init__(names) + self.config = self.config + self.extraconfig.format(builddir = self.builddir) +