From patchwork Tue May 28 09:49:50 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: 165292 Delivered-To: patch@linaro.org Received: by 2002:ac9:2a84:0:0:0:0:0 with SMTP id p4csp7811402oca; Tue, 28 May 2019 03:09:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfX369y/D/SZqIBNYPycNDGbcbMZYM6xpL7H/aLyhz2klnDNxT+zUfR2BYkkm/u3mxhUvh X-Received: by 2002:ac8:3128:: with SMTP id g37mr100801053qtb.65.1559038152772; Tue, 28 May 2019 03:09:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559038152; cv=none; d=google.com; s=arc-20160816; b=Xh1DU+INIL++T7H47T4y7CWUS/238cGKX+uWvX0d+G09Xhl0shIJGlXZgMgIVuT0U7 kQY0okM1WbJW8E9T1zTLDk6wpyMQJl8jtNWvv5wAV4wrf3XwwzzER3wdn5ja07YL3Mj/ jRfXEMfIXsehqxNADsPOu33BtidMyOmJ7GdBsBsOqdWD37CaHX17Dr8M635JMciGbA8d lMXiEjIuLdMu8mlxp//V8bY/oDTtyBbMv8KMinxbvjJkTjB1O/8hHdEgAZPPOtZTyY+q ju9Q4nURA3Zr+GSzG3mJGc0qzpHLIPjQ7ptN0guiLxL2h5INY8TnHd9+OLDQJ4bKEnPE OgGQ== 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=tMdbq3E1Luz0DkEOlhvxxv+uguLcXoXXlXySeiBWlSg=; b=rYzQF+SvY0WbLrCJXD0oltywpJ5+y/En+F//8UFmmK8ZegVfTrfM4cU+6Gn4FGb+/A mmMnc58+dRkGk6TuCgHpdklUEX7+M+HSE6ISqAALzRhZX0wyV43Scc7H7n8hLZIiYwyh 3csqKFxMO+Wz3w3WESO3bHd41in+VfbJDZP5wvG89BBygM/7exmnnb49WdhovR9fMzHl e/LsgRHgYIX4nkIHfF02xIPsXXTnGP2Wfsh89Y3N9mb+E2StvkTaQqWi+PU8KuGa5Cvf jL6bKgtVOVJSBR21RtTw321tHatABFqL6mi3NMlD5i7awzRpxGZhenN3Nw1I4aAuZuuj J+3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VqYi1C0t; 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 y128si1518396qke.91.2019.05.28.03.09.12 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 28 May 2019 03:09:12 -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=VqYi1C0t; 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]:60223 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVZ2e-0005Eu-AM for patch@linaro.org; Tue, 28 May 2019 06:09:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVYtg-0006MZ-B1 for qemu-devel@nongnu.org; Tue, 28 May 2019 05:59:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVYtf-0005Xu-2A for qemu-devel@nongnu.org; Tue, 28 May 2019 05:59:56 -0400 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:38501) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hVYtd-0005UJ-Q8 for qemu-devel@nongnu.org; Tue, 28 May 2019 05:59:54 -0400 Received: by mail-wm1-x344.google.com with SMTP id t5so2126684wmh.3 for ; Tue, 28 May 2019 02:59:53 -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=tMdbq3E1Luz0DkEOlhvxxv+uguLcXoXXlXySeiBWlSg=; b=VqYi1C0t0lGUV1dL44XxrhpFy4squdvxmCQkFTPVNc9tJcqHxKTd0V2EyDl05SLNt2 gOqu948dCbPeV/ZcH9KrDGxgPYC1PMmunxa4XFdw9mcVyH03n3ACYJpbMLA5AZ96+8oT ZmQWHRLZc7Y66rzY2g/SDsV8ffAb0Hg8yYe+7EPHc95pbe9bvsgzzukM+WfyT3cP/+M5 jwler63M/zVm+JIsPIpg1oWM41qaeakFKb3qdFb81A8FzMdZOpnMPotZtKXS5PWglnJX ywMwRxQoDDDsjvaTg7L7VtEa/1gBuKUlLpz7D8ApArWbKvrqCL4PkUkmxZ9EvKLCcg0o +P9g== 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=tMdbq3E1Luz0DkEOlhvxxv+uguLcXoXXlXySeiBWlSg=; b=m7pUINqXcaSQKjSBmdM0wQf+rqmgj7Gpm8qXJRjuKYoykNxazj/4ffS7R0z8O4VYIv ob1CWP4b+bbnmEzXImLu+IgecHFgMiSIqzY04cFTAEFK1UH/doVZeWONXqaIp9bRYsNU nTtRi9DyeFoYKvksC0HzMlGARXN8l6M7xePMmENsJmZiP5+R0UTKDzGlIabSPUvBqX1R LZTYGZkun3+k1zjZJcl5lUFtEJCnPHAVbGdP5k/PQgnXAmOAYlGFNf5fu+vRZAkucPpp ge4yFVc1txmGHcqLWXAOI72u069TxWqb9FJIbJPSRpxSxBTml/ankXXaWFQlXskP0Nzt nFkw== X-Gm-Message-State: APjAAAUPMcT1AWx7Nbug+lKj7Z7mzaEP+BEtDJGP8FasK1EMzO1wx9U5 AOhfRtbDhIg0nkNh8RoJuCea7A== X-Received: by 2002:a1c:9951:: with SMTP id b78mr2586995wme.96.1559037592148; Tue, 28 May 2019 02:59:52 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id o6sm517496wmc.15.2019.05.28.02.59.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 May 2019 02:59:51 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id A31D91FFAC; Tue, 28 May 2019 10:49:55 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 28 May 2019 10:49:50 +0100 Message-Id: <20190528094953.14898-26-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190528094953.14898-1-alex.bennee@linaro.org> References: <20190528094953.14898-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::344 Subject: [Qemu-devel] [PULL 25/28] 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 , =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= , qemu-devel@nongnu.org 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 -- 2.20.1 diff --git a/Makefile.target b/Makefile.target index 4ef4ce59969..ecd856e3a3f 100644 --- a/Makefile.target +++ b/Makefile.target @@ -238,3 +238,19 @@ endif generated-files-y += config-target.h Makefile: $(generated-files-y) + +# 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