From patchwork Thu May 23 10:25:29 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: 164992 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp2010941ili; Thu, 23 May 2019 03:54:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQpz9s6+h6YCTvza9tlH9TL9DPQm2VsuKYsbcYlnT0keWXyApNrcUXr+0raJz+T6VO5w7h X-Received: by 2002:a50:893d:: with SMTP id e58mr92552384ede.244.1558608841213; Thu, 23 May 2019 03:54:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558608841; cv=none; d=google.com; s=arc-20160816; b=TSkxaRsYCQvWLg2c1ddOvKRynN/GUvZDdU0kOeSvppDHMrc3VEGtik7UCZMfM1/ey5 kERSDX+YykxnRcSkclQRYOs6S0DlgPwUvng/9d3kxJyEHwQAkrkDNkpmVTx6N+rd1fyk 2tgzEPgjtO/gXmxWNqwriYKfoZJ1j3XIkC1CNnMP7cIpUBKbfQotLl1x+8z+vjG8p2KN u9HVZnmufSKfsaskrcWUsW5qLfusU4fUC3yvqBSegEdDe+swj/+5fNT2lue8jPpbOm8k c61iq3+FMKQVb/bQZfPXTRWYw0r4vi3BdgMqK3j6vGWwjFJF1wIbgQZXHv6/dDHJn5w5 OeuQ== 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=taVCGQXYe9mSal2L1Nl6ndCabOIar1+JnkxJyTbWwQY=; b=vUSbx8J1caxTpJXf8cCh9smWavgzrhpQrj0yJIL6sqRiFAb/5xay9vtxSahXYZ+Dzc fvklAWIX6v69WUqArwqh+G11I6JxIN50rxaAebcTbZIojOW+Y5b0RGajuN3Dpy0E5PE7 hBCBlNl7M/DH7BFcT4HmXHZMXhfMOjFFp3tElS4PA2uAw6jTPclwBe1wHCyXALirYDHx gE3db6SHUlmqiwyo8SYsoQziKB0UdhuJl1znbb06UdKY79CE7IUuiPCYukukwc76Tq1D PIGRGSIUvokpNtVUzvnn6UN6Mc1DejWxI3hGODnBBLtA/oijqFyGHuosaVLX5v9cd2GM J4Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VYzBIefg; 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 b9si5824540eda.111.2019.05.23.03.54.00 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 23 May 2019 03:54:01 -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=VYzBIefg; 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]:33549 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hTlMG-0004YX-7w for patch@linaro.org; Thu, 23 May 2019 06:54:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hTl2n-0004P6-Gm for qemu-devel@nongnu.org; Thu, 23 May 2019 06:33:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hTl2i-0006b4-RL for qemu-devel@nongnu.org; Thu, 23 May 2019 06:33:50 -0400 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:34541) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hTl2g-0006Z0-V7 for qemu-devel@nongnu.org; Thu, 23 May 2019 06:33:48 -0400 Received: by mail-wr1-x441.google.com with SMTP id f8so5699494wrt.1 for ; Thu, 23 May 2019 03:33:46 -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=taVCGQXYe9mSal2L1Nl6ndCabOIar1+JnkxJyTbWwQY=; b=VYzBIefgOt3hxUUJStj0ZuIbzWDXCdvafworTfnTNKHONkJIIi/Bl5S3pR5o3E2W2p nN95Z2MgEEaOnNDte0OFZyF8qRvZ5dLHAa26QBjpWmoWxm/7R/KW/XRodsRfSKwYh9Ay yhfnDKVhUfIJC+w/SbeRwcKe+kQ6PwQz2LQEMp6d6WOirFjknkpofkBq9zkh9PlihZ9o F1o0Jhvw6p6pxkqNjKO/r1NThlgnqus6Ts5267aulvbIkH2sVPufxt73Z9igFc7h+Y7A aPcdkfzn7PmdDH9BOYlb15EVmZ6Gw3hcAOhOqJkMjda+FIdUqBobky4FEBLDNHKvaBR0 GiqA== 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=taVCGQXYe9mSal2L1Nl6ndCabOIar1+JnkxJyTbWwQY=; b=gfDMtNnEktVeV05W83//2+PPS7JUVG4HvjRE3wXaz3GTqrJ7X8vrt8amGOXjFhKDzX CS1d5f7SJm26kARh2vE4AlkfgT4JIch8pBYQxdVRgEAdlurvkhHclWibTtzsCZ/vwhjA fkSZmr5ri8R8yFlYE82X+IF0PMltMVXFn8rlub/QdL20hK1sHybvV1znY6DgX0jsLBSc p98LxgCdussxVWIqHIlbuW6/waMzQNm8Pb5nRVqhRo5dQ/ym58Z0LwhvC/wHbaKP2yA3 JEytF2VcdY4JYACjXpkNAdEN64Bx1rD1oFBLcQm3ihiut/7ArFvCyJPky6u7sR2jp3PS l2zQ== X-Gm-Message-State: APjAAAU5Wq9YyStYOSKjVsO6tQLimwJhW4OPrQdvOdV2PTg9jKu5aMuS ig4+lyGwVusGTZalpYJa4sNggg== X-Received: by 2002:a5d:6408:: with SMTP id z8mr134299wru.238.1558607625140; Thu, 23 May 2019 03:33:45 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id d17sm23214216wrw.18.2019.05.23.03.33.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 May 2019 03:33:43 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id A48B31FFAC; Thu, 23 May 2019 11:25:34 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Thu, 23 May 2019 11:25:29 +0100 Message-Id: <20190523102532.10486-26-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190523102532.10486-1-alex.bennee@linaro.org> References: <20190523102532.10486-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::441 Subject: [Qemu-devel] [PATCH v2 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 , 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 fdbe7c89f4a..328c37902ea 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