Message ID | 20180621062605.941-7-alex.bennee@linaro.org |
---|---|
State | Accepted |
Commit | 5e03c2d816284e1033814fa6e638ed0df0a58d87 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1672061lji; Wed, 20 Jun 2018 23:28:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIH/APV5qBapjLEb/xcBE7nIfEEvSsy3RMF2q9aoBtk/9b/UXvL3WtpQ4l5+snQwOQtYAX5 X-Received: by 2002:a0c:8c0b:: with SMTP id n11-v6mr21210024qvb.228.1529562539149; Wed, 20 Jun 2018 23:28:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529562539; cv=none; d=google.com; s=arc-20160816; b=OSp/TNSFto2lG3E4fyIlFWhWra8/WOA8fvVNBGVo+fSqWuqpgfChUcFpIUTT6RAeLe ro/u1TPEShyTspqx5SoeqW9gtl/f5yi0Ahhc3POt1/brW+9ks5kEMVspPwtUGCpUuyQg ravffUY/1eIFu8R5tpMoxwFkWX9LINM5Id4xPIngpBC3jHQ3p7TyR4dKBODlNDTruL/8 b0NY0EeQlryXv1j6Z0oGEcHIS1jNcebk2Ht9zs9u2udyqF6T7A9NigL94OfyGcTWWtEf N8njT+UESo+D32zKC+kuIFqw+78I7zdOWRwLXcfYqcEuIP0RtvAaMqRpf8sJN7VvyyuE ZHWQ== 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=3iAj3TIpErOv3tfEY+pKXIYuENH9/oWCVyF9cxVZGjI=; b=ocxY2BlmTrERuxfMvPDIJn0WUINWhYh+yHSW1x6uoQ4AqDiZNPjQ8ArhR3r6IIKZ4s C5pwif1R58iyefY7ukXVqk5A51+v60eZaNyY92NtavR/jyXy1aTxInAIDeqJV7kj/XNO hMJAPEEfi9tyzFQthoeUAyT3xck2uBqIarS6SwZFJBhhulqNefhUzCxocKuklrPaovRT y47pOc/BtkMxmL5VkTjH0SgdsnvP2v/EsBYbloczCH/YtbRYXRM6IRljdGl7K37hE6+S zG3QcoxfnXLLzNZDraxTfnY6an/TTw8U9ZEmtV5HE/6YGJb0r0SnAclwsWAMm+5x7CV1 DHuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=kE9VQEPs; 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 w27-v6si4259038qth.39.2018.06.20.23.28.58 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 20 Jun 2018 23:28:59 -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=kE9VQEPs; 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]:53246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1fVt5W-000241-IL for patch@linaro.org; Thu, 21 Jun 2018 02:28:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53034) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1fVt2q-0000t0-Fl for qemu-devel@nongnu.org; Thu, 21 Jun 2018 02:26:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1fVt2p-0000ZI-KO for qemu-devel@nongnu.org; Thu, 21 Jun 2018 02:26:12 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:53343) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1fVt2p-0000Xo-EK for qemu-devel@nongnu.org; Thu, 21 Jun 2018 02:26:11 -0400 Received: by mail-wm0-x234.google.com with SMTP id x6-v6so3096122wmc.3 for <qemu-devel@nongnu.org>; Wed, 20 Jun 2018 23:26:11 -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=3iAj3TIpErOv3tfEY+pKXIYuENH9/oWCVyF9cxVZGjI=; b=kE9VQEPsrCsii2fWXPoyQONow+euvGoiZh3gahoGxIADibWRZvTB7otWwK1LHSV1Ea fx98DIzPDXxTHrovNVhuxegsb6Go1f/J4ViDT6KdGOXc0ofiET28xrpQmYZffVA9CYQo /T8gKmnY7vhya+f7eYFTWQ1QOrMBkGmf6CxEM= 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=3iAj3TIpErOv3tfEY+pKXIYuENH9/oWCVyF9cxVZGjI=; b=e9l1dOA30H9E+UjDdtVo36+CC1CKHR1RoO7Ageawh92tKfQoqs4RXO1E5CUJxpHnyd qnSa4TZFh5Q42ry/FT5A0c9f0BBYqHHPM6dkb7hE5Kxi7fs2jTl5Ecb41iuqYAGI4dZ4 Ex2eOqZK1XjOmvClV8swMHuZYEMAWllIRct/AiBmSWgNs9Yktsf4zGl8VZpmo8MJA+EZ DfidQ/r3lDT90NQWbzGLBF3HkNOTw86iQ+WWArC8hG703XnJj9jIqI1CBWicS0E1GW4L YQgcd56g7LXSmH30YQFlaGRw2wzP3mBUhzLz6sj1P8/tP3P1R6Tt8ROLpyors/XfmdKc WtDg== X-Gm-Message-State: APt69E2DGX2jqmuFMJbV4Vy2uD9PJ+GL4yTRd1ObjNXu9fYsuBCrSrgz FXAOfULjoezqyDw31AGGRWT3BQ== X-Received: by 2002:a1c:8301:: with SMTP id f1-v6mr4267365wmd.17.1529562370394; Wed, 20 Jun 2018 23:26:10 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id q17-v6sm4424764wro.30.2018.06.20.23.26.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Jun 2018 23:26:07 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id C42963E08B3; Thu, 21 Jun 2018 07:26:05 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org> To: peter.maydell@linaro.org Date: Thu, 21 Jun 2018 07:25:14 +0100 Message-Id: <20180621062605.941-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180621062605.941-1-alex.bennee@linaro.org> References: <20180621062605.941-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::234 Subject: [Qemu-devel] [PULL v2 06/57] 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 e4095270eb..42267bb94d 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -412,6 +412,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]))