From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 02 Jun 2023 09:18:17 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q4z3C-006you-Kj for lore@lore.pengutronix.de; Fri, 02 Jun 2023 09:18:17 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1q4z3A-0002NG-Fa; Fri, 02 Jun 2023 09:18:16 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q4z2a-0000vZ-Rh; Fri, 02 Jun 2023 09:17:40 +0200 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1q4z2a-004X9i-6z; Fri, 02 Jun 2023 09:17:40 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1q4z2Z-006IBV-IH; Fri, 02 Jun 2023 09:17:39 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Fri, 2 Jun 2023 09:17:39 +0200 Message-Id: <20230602071739.1499748-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230524223413.1079888-1-rhi@pengutronix.de> References: <20230524223413.1079888-1-rhi@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] cpputest: new package: C++ unit test framework X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Roland Hieber Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as 67951746da0af80e6e51e155fc9a1aa121ee5799. Michael [sent from post-receive hook] On Fri, 02 Jun 2023 09:17:39 +0200, Roland Hieber wrote: > Signed-off-by: Roland Hieber > Message-Id: <20230524223413.1079888-1-rhi@pengutronix.de> > Signed-off-by: Michael Olbrich > > diff --git a/patches/cpputest-3.8/autogen.sh b/patches/cpputest-3.8/autogen.sh > new file mode 120000 > index 000000000000..9f8a4cb7ddcb > --- /dev/null > +++ b/patches/cpputest-3.8/autogen.sh > @@ -0,0 +1 @@ > +../autogen.sh > \ No newline at end of file > diff --git a/rules/cpputest.in b/rules/cpputest.in > new file mode 100644 > index 000000000000..b2e7292d63e7 > --- /dev/null > +++ b/rules/cpputest.in > @@ -0,0 +1,7 @@ > +## SECTION=test_suites > + > +config CPPUTEST > + tristate > + prompt "cpputest" > + help > + CppUTest unit test framework > diff --git a/rules/cpputest.make b/rules/cpputest.make > new file mode 100644 > index 000000000000..b900170c3633 > --- /dev/null > +++ b/rules/cpputest.make > @@ -0,0 +1,56 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2023 by Roland Hieber > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_CPPUTEST) += cpputest > + > +# > +# Paths and names > +# > +CPPUTEST_VERSION := 3.8 > +CPPUTEST_MD5 := fc34eab33c08e8dcd83698988e9a33c5 > +CPPUTEST := cpputest-$(CPPUTEST_VERSION) > +CPPUTEST_SUFFIX := tar.gz > +CPPUTEST_URL := https://github.com/cpputest/cpputest/releases/download/v$(CPPUTEST_VERSION)/$(CPPUTEST).$(CPPUTEST_SUFFIX) > +CPPUTEST_SOURCE := $(SRCDIR)/$(CPPUTEST).$(CPPUTEST_SUFFIX) > +CPPUTEST_DIR := $(BUILDDIR)/$(CPPUTEST) > +CPPUTEST_LICENSE := BSD-3-Clause > +CPPUTEST_LICENSE_FILES := file://COPYING;md5=ce5d5f1fe02bcd1343ced64a06fd4177 > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +# > +# autoconf > +# > +CPPUTEST_CONF_TOOL := autoconf > +CPPUTEST_CONF_OPT := \ > + $(CROSS_AUTOCONF_USR) \ > + --enable-std-c \ > + --enable-std-cpp \ > + --enable-std-cpp11 \ > + --enable-cpputest-flags \ > + --enable-memory-leak-detection \ > + --enable-extensions \ > + --enable-longlong \ > + --enable-generate-map-file \ > + --enable-coverage > + > +# ---------------------------------------------------------------------------- > +# Target-Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/cpputest.targetinstall: > + @$(call targetinfo) > + @# cpputest is a static library only > + @$(call touch) > + > +# vim: syntax=make > diff --git a/rules/host-cpputest.in b/rules/host-cpputest.in > new file mode 100644 > index 000000000000..7ef582262d20 > --- /dev/null > +++ b/rules/host-cpputest.in > @@ -0,0 +1,5 @@ > +## SECTION=hosttools_noprompt > + > +config HOST_CPPUTEST > + tristate > + default y if ALLYES > diff --git a/rules/host-cpputest.make b/rules/host-cpputest.make > new file mode 100644 > index 000000000000..a75dd5449706 > --- /dev/null > +++ b/rules/host-cpputest.make > @@ -0,0 +1,34 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2023 by Roland Hieber > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +HOST_PACKAGES-$(PTXCONF_HOST_CPPUTEST) += host-cpputest > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +# > +# autoconf > +# > +HOST_CPPUTEST_CONF_TOOL := autoconf > +CPPUTEST_CONF_OPT := \ > + $(HOST_AUTOCONF_USR) \ > + --enable-std-c \ > + --enable-std-cpp \ > + --enable-std-cpp11 \ > + --enable-cpputest-flags \ > + --enable-memory-leak-detection \ > + --enable-extensions \ > + --enable-longlong \ > + --enable-generate-map-file \ > + --enable-coverage > + > +# vim: syntax=make