From patchwork Thu May 9 16:59:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 163742 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:142:0:0:0:0 with SMTP id j2csp1265810ilr; Thu, 9 May 2019 10:23:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBt7UGasrtNBmL5BUu7rWyrUyMeIhKnGKrwofI/lsnfY4TPykK/qcIk3JfDKrpUmPkwcgP X-Received: by 2002:adf:f70a:: with SMTP id r10mr3992278wrp.96.1557422627673; Thu, 09 May 2019 10:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557422627; cv=none; d=google.com; s=arc-20160816; b=v8aX+bTV76dVkC9Vc/eYkXB228wrn+gb+RXdSSxiIBx5bgZhQEPc0NaTIYrX+KQStc R4YXdsrniR7c+e628br/WYc+8Xp6DyeniqW6Pjs0CishEJAEcl6qrK5IsIhHfJwksH+Z IY3iP1FGJyfVETpl7VATKI+phseF2JWIKT55EPdQRThFXgQ/4kTNQsc4Twg8bj4oLnqy FKx/+gyn1vfIO1vrqmsD3pkOB5zsxzdHZHUsbO/5ORl0+HYloeltui1h+tagl9KT7iql ZpK6quhfUgrvx1ehvoV4YisuQGUiIwtSwVptvvQmLP5Coufi1sTIgboC1P0HYJx8w42I 3Z7w== 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; bh=lgZfPbopRUJXrj/AngwFpop/a9mtHOqlBcsdu25DOWg=; b=zDJ4qrP6YJb3qEKk14b3fqkwSsdkflWUTbA+Aj2jVk2sGYjZ0IMdDuZvXmSRBt0zA8 6L8qFEGKkvAdP5yVgqvx8WHrlXhRUuhOn4ijS6EUpl6P2PHVplu33c6UvxHpd6DoeJRQ MbuEpdcFqKWyLSXfeU4nooDNAdSyKyVPw3oAT9p3xjlqlFSXj3+XhdOruIRSKZ0YYS5D fCeUkCWykNwYfxwrvECQcAbgYafNXtOfxYuJSDWbkQlypNrptqJpcpWYghvJ9guPsKBB muMkc2yJFr6tSyGJ7aRjkH3gSE+YjLOYVUM10bms0M6eL1cd5rjIZOTa87T9dC25wb83 qRxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NFg8fjAv; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id h5si2324140wrv.125.2019.05.09.10.23.47 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 09 May 2019 10:23:47 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NFg8fjAv; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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 ([127.0.0.1]:58398 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOmlm-0002mW-Ke for patch@linaro.org; Thu, 09 May 2019 13:23:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOmU5-0003ne-Ul for qemu-devel@nongnu.org; Thu, 09 May 2019 13:05:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOmU4-0008Bk-D1 for qemu-devel@nongnu.org; Thu, 09 May 2019 13:05:29 -0400 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:40709) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOmU4-000890-4N for qemu-devel@nongnu.org; Thu, 09 May 2019 13:05:28 -0400 Received: by mail-wr1-x444.google.com with SMTP id h4so4064055wre.7 for ; Thu, 09 May 2019 10:05:26 -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=lgZfPbopRUJXrj/AngwFpop/a9mtHOqlBcsdu25DOWg=; b=NFg8fjAvpDRy2r5DC+OveaTtXK+YXnZFT5NHQizoJWoqnFBAxtGPtOLJwuGXNhuonX ql1WyRUMnN0vSlpUUYSqGCudMeDOC+E9tc33wPMbsFGqQpuprDhIVpf7fB2nIMTsn8qQ Pqx6FdK9D/keacrqxX9PuDY8w+dpwM8QOYcx2tjnH3CxEnRMTo5FoR0GCW3VgBgDYpX5 n5dkWEwsW90GufyewAe1H9P4l73V6I5Nprz/FWralka9Iz6Uua0fxQTqneP3d9Eim7sb 1GdjHp7OVw05ZrWGugAD34eHd9FqDP/j6L+SdzH3JC4SX/bIfcD0uvgPPcR0ICDWWNjy UhDw== 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=lgZfPbopRUJXrj/AngwFpop/a9mtHOqlBcsdu25DOWg=; b=g4dwqU134Fbm7h2zg2//iSZ9d+zia1Ftnw7E3n8z3FfHTcRpVOjvbiXTzVvtb8dvPe JnNNheFFQJwwoBOWWWBf4su3hLggVsmZHYffz9buiMYb+wWL9IxyhTxR3a2RnqaNyTZc cAPU5zHlGs6YTEFSY+wVc/wyDX3mOONwOSzJZs/VFQxM3TG6b3t5e4zLlxTkFDb6u1Q4 2OKBf0xxNECI+84JCCZTxVYGW4BaylGU6ENXfzw2bqtmGq3D5e0m4bDpeN322pI0M4MZ 59Q91OoBykz5QLXNODIAamuR97fqFyOw38JQoFPLSjsz4cWTOkKysbqCHSPIk64cNHUg UCFw== X-Gm-Message-State: APjAAAUD9uS8kHyj+lEn3optXpn5JRWL4u8/1czMReHV6G3G6PkcmUi8 GtsfIk68SYIdx5kNJ1tc2jlgUA== X-Received: by 2002:a5d:6a46:: with SMTP id t6mr3894461wrw.210.1557421525366; Thu, 09 May 2019 10:05:25 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id v5sm5463369wra.83.2019.05.09.10.05.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 May 2019 10:05:23 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 4C1221FF9F; Thu, 9 May 2019 17:59:13 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Thu, 9 May 2019 17:59:03 +0100 Message-Id: <20190509165912.10512-16-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190509165912.10512-1-alex.bennee@linaro.org> References: <20190509165912.10512-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::444 Subject: [Qemu-devel] [PATCH v1 15/23] Makefile.target: support per-target coverage reports X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Henderson , qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Add support for generating a single targets coverage report. Execute: make coverage-report In the target build directory. This coverage report only cares about target specific blobs so only searches the target build subdirectory. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- Makefile.target | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) -- 2.20.1 diff --git a/Makefile.target b/Makefile.target index ae02495951d..aa5d9d6ba66 100644 --- a/Makefile.target +++ b/Makefile.target @@ -238,3 +238,19 @@ endif GENERATED_FILES += config-target.h Makefile: $(GENERATED_FILES) + +# Reports/Analysis +# +# The target specific coverage report only cares about target specific +# blobs and not the shared code. +# + +%/coverage-report.html: + @mkdir -p $* + $(call quiet-command,\ + gcovr -r $(SRC_PATH) --object-directory $(CURDIR) \ + -p --html --html-details -o $@, \ + "GEN", "coverage-report.html") + +.PHONY: coverage-report +coverage-report: $(CURDIR)/reports/coverage/coverage-report.html