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 455C3A00C5; Wed, 14 Sep 2022 16:29:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 391B14021D; Wed, 14 Sep 2022 16:29:24 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id D6A0140156 for ; Wed, 14 Sep 2022 16:29:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1663165762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DxZ8CBDJ+sGgciLK6xUZ3U3csFhY378mAo1AwXLHzB4=; b=OGFJqNj0nsXzNTEG3btGqEZOCJ68cd+8IQika/eSZaulRFcdV3ew5bsqDCFwU6v2sDAMj5 7DgssMQNq+tNA15I5oedyDC6xOx1No7pFscUEKPnMx7tYOa8l9mZauLg35WBjwBsrsrbuo oN9+k5T3wK9c9D7dIrlxEvfSWWxaumQ= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-29-Q4jU-XMINvSemEvjEbfhLQ-1; Wed, 14 Sep 2022 10:29:17 -0400 X-MC-Unique: Q4jU-XMINvSemEvjEbfhLQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 84DE985A5A6; Wed, 14 Sep 2022 14:29:16 +0000 (UTC) Received: from RHTPC1VM0NT (unknown [10.22.32.181]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 311552027061; Wed, 14 Sep 2022 14:29:16 +0000 (UTC) From: Aaron Conole To: Felix Moessbauer Cc: dev@dpdk.org, william.lam@bytedance.com, chrisswindle@microsoft.com, aconole@redhat.com, david.marchand@redhat.com, henning.schild@siemens.com Subject: Re: [RFC PATCH 0/1] Add support for code-coverage analysis References: <20220906164309.1771502-1-felix.moessbauer@siemens.com> Date: Wed, 14 Sep 2022 10:29:15 -0400 In-Reply-To: <20220906164309.1771502-1-felix.moessbauer@siemens.com> (Felix Moessbauer's message of "Tue, 6 Sep 2022 18:43:08 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain 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 Felix Moessbauer writes: > This patch has been developed as part of the DPDK Userspace Summit Hackathon. > It provides a PoC for code-coverage analysis for the DPDK project. > > To generate the report, a developer simply follows the official > meson coverage workflow, described in [1]. > In doing so, both an HTML report, as well as an XML version is generated > for further processing. > > In short, the following steps are required: > > - install gcovr > - meson -Db_coverage=true build-cov > - meson compile -C build-cov > - meson test -C build-cov --suite fast-tests > - ninja coverage -C build-cov > > [1] https://mesonbuild.com/howtox.html#producing-a-coverage-report +1 for this effort, I also think that would be a great addition so show our current coverage via a service or something like coveralls.io and possibly the dashboard. I don't know if coveralls would support the series branches we create, so I will spend a bit of time looking into it. BTW, can you also include information on the current coverage % of code base? Last I recall, some of the libraries were quite low (bpf and bbdev stick in my mind as having very low coverage). > Best regards, > Felix Moessbauer > Siemens AG > > Felix Moessbauer (1): > Add basic support for code coverage analysis > > gcovr.cfg | 8 ++++++++ > 1 file changed, 8 insertions(+) > create mode 100644 gcovr.cfg