Message ID | 20180619154435.18898-6-alex.bennee@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5386535lji; Tue, 19 Jun 2018 09:04:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK5EAGfPQ+0R6GhNHmAMXj1haVmwYf5bLBDeFdpJQy7i+T4JtwS9RletIicNppizt5u45E4 X-Received: by 2002:a37:4788:: with SMTP id u130-v6mr15049864qka.301.1529424255823; Tue, 19 Jun 2018 09:04:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529424255; cv=none; d=google.com; s=arc-20160816; b=hcA2wmLFoE4wPxuHyRTmXpcPyE7UxM8qIVsA58o14aYibUFwhIVfi0UC+YuZFVaE1p XF8gZ/t7pAVy4h7HPxiJrp5Gc/XJU7WtzGINcKh+/fGBZetidXyJYfjnb4ERZHx2+h/b HM48erZgf8prTcximVdLyZ02u1nackzZHnQrpM3FhFcA3cxUfyJoi757Vy2Y33+XSftx kEOTBFWkzTCXqQujAKzmWWTFZcM32ojaPYtgprmcSwg8rXrNKF0cC4gDc4+EMD6ZFS8d uqH2A1ociuFl4FPU5BxXqQm78+fuoOZTv3fC7YjfplBVdhB/OjqKy3cEG2mW/owJmaUd 1ymg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=H34F/QynxIPq1fCHjZu6nADKVRU7PN3mDXHYD0McbMg=; b=009HrA+sSR3EY0XfIvFHMBGzn18ucWIwsGOsKR/KhaP5neHjNW4tLiqhdAMLL5kY4I bvJe3roplN8Kc8m1/Q/6EBy6LJLjS5NzmAXNetMNviklQ9lCAYiV6Gy9l9kDAcV0oi5h GB4fi0HZ2ynQbTpipd+h5fc53F2Vwy/z5BPGrtJYvCHScmLVR+xl7e/Rku3uvcrXk7yN 08p8UUp6RwxEyF54c5npwNGzgeLRcNMoIeIgePRFhdchoro4TlYS/WIK+CeSar3756MO u11q//pwwA1DYgmYjD5XrmVRPWSHuLnq0k1Bib16Z0pwRQk8IJMTO2N/ymFoYRR2YFd1 +3JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=iUG4jkYV; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id z12-v6si76084qva.19.2018.06.19.09.04.15 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 19 Jun 2018 09:04:15 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=iUG4jkYV; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:43438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1fVJ79-00052y-AA for patch@linaro.org; Tue, 19 Jun 2018 12:04:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1fVIoG-0006WE-3a for qemu-devel@nongnu.org; Tue, 19 Jun 2018 11:44:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1fVIoF-0006NY-6F for qemu-devel@nongnu.org; Tue, 19 Jun 2018 11:44:44 -0400 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:55265) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1fVIoE-0006Mn-V8 for qemu-devel@nongnu.org; Tue, 19 Jun 2018 11:44:43 -0400 Received: by mail-wm0-x233.google.com with SMTP id o13-v6so1147622wmf.4 for <qemu-devel@nongnu.org>; Tue, 19 Jun 2018 08:44:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=H34F/QynxIPq1fCHjZu6nADKVRU7PN3mDXHYD0McbMg=; b=iUG4jkYVfdPKZiDJ2ChGG8c9Vt7LSNUW9qBtzdpC9TQbxiCp5PIi0z5lcTzYWmAXir jl4pTqVYNHWRWxkwRaLSqkd+9Yd0nAPh8kct3Pd4XdNWUF6UncquR5+nlNx+iojxl1nq RqUuP3oxNkqxZd5aD5OYT5ZnZOLj+vJBfuD34= 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:mime-version:content-transfer-encoding; bh=H34F/QynxIPq1fCHjZu6nADKVRU7PN3mDXHYD0McbMg=; b=GvALmI8/q8DnlGHec094wXWkF3pSuaoYxwl+RwyWFpHIgLpTok+Bn9bk6H21iMAe0m YxyBs9NhsjZl6zNaVTCfbEedsKxuKWeK5g2soJ/dhuk7sqvLMD3VGRPl3vNG4isNX2Ux JM9rvBCXzwnZB2Xeqvb/dFj0Ac8S1ULE5eT0YYel50yyxU6s39JBwiCWgYdLSk9wu+vj LsMcHmWoBGOQJDuLLBm5bF7u5iHQ6HloWbhxM3CPYc6jlMzs5SO1cXR1D4TUkMuZ8yIR 8LhUukdkSJd+IyiY9VmCHoSYNRvP9djbpxBJtpCeUi4ElX9uMLrkH2wix2THd2rMGhCb jh6A== X-Gm-Message-State: APt69E3MXs7xtA8V+kyntcPDAEt1MstJsFqcc6V+zBWIc2DlwUA8b2s6 e8+Uf4n4xRAElRxIQ+Z+pitFoQ== X-Received: by 2002:a1c:820c:: with SMTP id e12-v6mr12091018wmd.132.1529423081840; Tue, 19 Jun 2018 08:44:41 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id t124-v6sm243844wmt.29.2018.06.19.08.44.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Jun 2018 08:44:39 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id DDC323E08E5; Tue, 19 Jun 2018 16:44:35 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org> To: peter.maydell@linaro.org Date: Tue, 19 Jun 2018 16:43:44 +0100 Message-Id: <20180619154435.18898-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180619154435.18898-1-alex.bennee@linaro.org> References: <20180619154435.18898-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::233 Subject: [Qemu-devel] [PULL 05/56] docker: Add "cc" subcommand X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: agraf@suse.de, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, richard.henderson@linaro.org, qemu-devel@nongnu.org, f4bug@amsat.org, cota@braap.org, famz@redhat.com, aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
add check-tcg and associated machinery
|
expand
|
diff --git a/tests/docker/docker.py b/tests/docker/docker.py index 306e14cf69..4cd6f9b8ec 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -409,6 +409,31 @@ class ProbeCommand(SubCommand): return +class CcCommand(SubCommand): + """Compile sources with cc in images""" + name = "cc" + + def args(self, parser): + parser.add_argument("--image", "-i", required=True, + help="The docker image in which to run cc") + parser.add_argument("--source-path", "-s", nargs="*", dest="paths", + help="""Extra paths to (ro) mount into container for + reading sources""") + + def run(self, args, argv): + if argv and argv[0] == "--": + argv = argv[1:] + cwd = os.getcwd() + cmd = ["--rm", "-w", cwd, + "-v", "%s:%s:rw" % (cwd, cwd)] + if args.paths: + for p in args.paths: + cmd += ["-v", "%s:%s:ro,z" % (p, p)] + cmd += [args.image, "cc"] + cmd += argv + return Docker().command("run", cmd, args.quiet) + + def main(): parser = argparse.ArgumentParser(description="A Docker helper", usage="%s <subcommand> ..." % os.path.basename(sys.argv[0]))