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: 1106241 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="VqYi1C0t"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45CqK40XnJz9s9N for ; Tue, 28 May 2019 20:07:36 +1000 (AEST) Received: from localhost ([127.0.0.1]:60209 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVZ14-0003Tr-1M for incoming@patchwork.ozlabs.org; Tue, 28 May 2019 06:07:34 -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-Google-Smtp-Source: APXvYqxT+6Ctebhb9mhT7Jeh+2y11ZsvLoYEX8srSkuH1iyXdHEE8jA3/wNSB15fArLukBu9mQhcWw== 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+incoming=patchwork.ozlabs.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 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