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 B8CC843F4E; Tue, 30 Apr 2024 00:49:56 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BED5A402A8; Tue, 30 Apr 2024 00:49:54 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 66A7540262; Tue, 30 Apr 2024 00:49:52 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 73A89210FBC6; Mon, 29 Apr 2024 15:49:51 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 73A89210FBC6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1714430991; bh=keRS2vRZXg3iXNnSKRyhHTKWQ2fCZ8SjG1Fua9W6z5c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RR9lLz1QXMVRAJGNonyWjsuB0JtqqqMo5GzeFtVjlsqMCIoWDs/BhhwBvrba3QDhS P5m1JmZf7l77SZzl5/USUwZpKCutLvVzQ7EqHT8SJVhckJh6UfKiq1ZUgVU0VxtwbF QnGZvCAM4q4JEV1hhJlNKAxpnGtzlYkULG9GmdOw= Date: Mon, 29 Apr 2024 15:49:51 -0700 From: Tyler Retzlaff To: Ferruh Yigit Cc: Mattias =?iso-8859-1?Q?R=F6nnblom?= , "dev@dpdk.org" , "ci@dpdk.org" , dpdklab , Mattias =?iso-8859-1?Q?R=F6nnblom?= , "Richardson, Bruce" , Aaron Conole Subject: Re: Run unit tests with C++ too Message-ID: <20240429224951.GA17852@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <4d5510d1-bdc6-43de-abbc-749eaa3c75a4@lysator.liu.se> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: ci@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK CI discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ci-bounces@dpdk.org On Mon, Apr 29, 2024 at 09:01:08AM +0100, Ferruh Yigit wrote: > On 4/28/2024 8:46 AM, Mattias Rönnblom wrote: > > It would be great if the unit test suite (app/test/*) was compiled (and > > run) using a C++ (C++11) compiler as well. At least, if such is available. > > > > With the current state of affairs, header file macros or functions are > > not verified to be functional (or even valid) C++. > > > > "C is a subset of C++", which was never true, is becoming less and less so. > > > > If all unit tests aren't valid C++, maybe one could start with an "opt > > in" model. > > > > A drawback of this is that the unit tests need to be both valid C and > > valid C++. > > > > +1 > > cc'ing CI mailing list and CI lab. +1 too