From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9E7B7A0542; Tue, 6 Sep 2022 18:43:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8E3EE40E25; Tue, 6 Sep 2022 18:43:42 +0200 (CEST) Received: from mta-65-225.siemens.flowmailer.net (mta-65-225.siemens.flowmailer.net [185.136.65.225]) by mails.dpdk.org (Postfix) with ESMTP id 7E4CD40697 for ; Tue, 6 Sep 2022 18:43:41 +0200 (CEST) Received: by mta-65-225.siemens.flowmailer.net with ESMTPSA id 20220906164340703351b82f686cb0b4 for ; Tue, 06 Sep 2022 18:43:41 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=felix.moessbauer@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=nIpg2fOkOI9yTsqdIs09fjlqi2+qCQhwBoT6dXOmYZg=; b=R2v45EMg+NAbHNukgGN/qYu8TgLK2a+1DvaM3S3IKPBRZUlD6+sbSTSbjk5zfFBGCkXlZz x9foqA+zuR05DvtpqMprL6mGJl30cwojlR9gLMKn3oNHFDrIzzX/01tVhI1d+5wt5xGwnN+L 7ykx445aBbjkXe29XghKzUNrgfP18=; From: Felix Moessbauer To: dev@dpdk.org Cc: william.lam@bytedance.com, chrisswindle@microsoft.com, aconole@redhat.com, david.marchand@redhat.com, henning.schild@siemens.com, Felix Moessbauer Subject: [RFC PATCH 1/1] Add basic support for code coverage analysis Date: Tue, 6 Sep 2022 18:43:09 +0200 Message-Id: <20220906164309.1771502-2-felix.moessbauer@siemens.com> In-Reply-To: <20220906164309.1771502-1-felix.moessbauer@siemens.com> References: <20220906164309.1771502-1-felix.moessbauer@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-72506:519-21489:flowmailer X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This patch adds basic support to get meaningful code coverage statistics for some central components. To keep things simple, we only focus on the parts that are tested as part of the "fast-tests" suite. This includes the lib as well as drivers that do not require special hardware to be tested. By providing the gcovr.cfg file in the project root, modern versions of meson (>=0.63) can pass that information to gcovr, making it possible to configure the coverage target of meson. This enables us to use the default meson coverage infrastructure and customize it for the needs of the DPDK project. Signed-off-by: Felix Moessbauer Acked-by: William Lam Acked-by: Chriss Windle --- gcovr.cfg | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 gcovr.cfg diff --git a/gcovr.cfg b/gcovr.cfg new file mode 100644 index 0000000000..6e247499e8 --- /dev/null +++ b/gcovr.cfg @@ -0,0 +1,8 @@ +filter = lib +filter = drivers/bus/pci +filter = drivers/bus/vdev +filter = drivers/mempool/ring +filter = drivers/event/skeleton +filter = drivers/net/ring +filter = drivers/net/null +filter = drivers/raw/skeleton -- 2.30.2