From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 16 Jun 2021 12:37:41 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1ltSvV-0005Vk-0S for lore@lore.pengutronix.de; Wed, 16 Jun 2021 12:37:41 +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 1ltSvP-0001LT-LC; Wed, 16 Jun 2021 12:37:35 +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 1ltStW-0007W3-Jh; Wed, 16 Jun 2021 12:35:38 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1ltStW-00021n-2Y; Wed, 16 Jun 2021 12:35:38 +0200 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1ltStV-008ODn-Vg; Wed, 16 Jun 2021 12:35:38 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Wed, 16 Jun 2021 12:35:37 +0200 Message-Id: <20210616103537.1999646-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210607130909.4836-1-rhi@pengutronix.de> References: <20210607130909.4836-1-rhi@pengutronix.de> MIME-Version: 1.0 Subject: Re: [ptxdist] [APPLIED] googletest: new package 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 d02a6c1d0d1d47f0237cb618ad68510267a9fa55. Michael [sent from post-receive hook] On Wed, 16 Jun 2021 12:35:37 +0200, Roland Hieber wrote: > Signed-off-by: Roland Hieber > Message-Id: <20210607130909.4836-1-rhi@pengutronix.de> > Signed-off-by: Michael Olbrich > > diff --git a/rules/googletest.in b/rules/googletest.in > new file mode 100644 > index 000000000000..ab876ffd8a66 > --- /dev/null > +++ b/rules/googletest.in > @@ -0,0 +1,41 @@ > +## SECTION=test_suites > + > +config GOOGLETEST > + select HOST_CMAKE > + tristate > + prompt "googletest" > + help > + Google's C++ test framework sources > + > + Google Test is a framework for writing C++ tests on a > + variety of platforms. Based on the xUnit > + architecture. Supports automatic test discovery, a rich set > + of assertions, user-defined assertions, death tests, fatal > + and non-fatal failures, value- and type-parameterized tests, > + various options for running the tests, and XML test report > + generation. > + > + Google Mock is an extension of Google Test for C++ mocking. > + Inspired by jMock, EasyMock, and Hamcrest, and designed with > + C++'s specifics in mind, it can help you derive better > + designs of your system and write better tests. > + > + Google Mock: > + > + * provides a declarative syntax for defining mocks, > + * can easily define partial (hybrid) mocks, which are a > + cross of real and mock objects, > + * handles functions of arbitrary types and overloaded > + functions, > + * comes with a rich set of matchers for validating function > + arguments, > + * uses an intuitive syntax for controlling the behavior of a > + mock, > + * does automatic verification of expectations (no > + record-and-replay needed), > + * allows arbitrary (partial) ordering constraints on > + function calls to be expressed, > + * lets a user extend it by defining new matchers and > + actions. > + * does not use exceptions, and > + * is easy to learn and use. > diff --git a/rules/googletest.make b/rules/googletest.make > new file mode 100644 > index 000000000000..7f0c54f341f6 > --- /dev/null > +++ b/rules/googletest.make > @@ -0,0 +1,66 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2018 by Niklas Reisser > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_GOOGLETEST) += googletest > + > +# > +# Paths and names > +# > +GOOGLETEST_VERSION := 1.8.1 > +GOOGLETEST_MD5 := 2e6fbeb6a91310a16efe181886c59596 > +GOOGLETEST := googletest-release-$(GOOGLETEST_VERSION) > +GOOGLETEST_SUFFIX := tar.gz > +GOOGLETEST_URL := https://github.com/google/googletest/archive/release-$(GOOGLETEST_VERSION).$(GOOGLETEST_SUFFIX) > +GOOGLETEST_SOURCE := $(SRCDIR)/$(GOOGLETEST).$(GOOGLETEST_SUFFIX) > +GOOGLETEST_DIR := $(BUILDDIR)/$(GOOGLETEST) > +GOOGLETEST_LICENSE := BSD-3-Clause > +GOOGLETEST_LICENSE_FILES := file://LICENSE;md5=cbbd27594afd089daa160d3a16dd515a > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +GOOGLETEST_CONF_TOOL := cmake > +GOOGLETEST_CONF_OPT := \ > + $(CROSS_CMAKE_USR) \ > + -DBUILD_GMOCK=ON \ > + -DBUILD_SHARED_LIBS=ON \ > + -DINSTALL_GTEST=ON \ > + -Dgmock_build_tests=OFF \ > + -Dgtest_build_samples=OFF \ > + -Dgtest_build_tests=OFF \ > + -Dgtest_disable_pthreads=OFF \ > + -Dgtest_force_shared_crt=OFF \ > + -Dgtest_hide_internal_symbols=OFF > + > +# ---------------------------------------------------------------------------- > +# Target-Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/googletest.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, googletest) > + @$(call install_fixup, googletest,PRIORITY,optional) > + @$(call install_fixup, googletest,SECTION,base) > + @$(call install_fixup, googletest,AUTHOR,"Niklas Reisser ") > + @$(call install_fixup, googletest,DESCRIPTION,missing) > + > + @$(call install_lib, googletest, 0,0, 0644, libgmock) > + @$(call install_lib, googletest, 0,0, 0644, libgtest) > + @$(call install_lib, googletest, 0,0, 0644, libgtest_main) > + @$(call install_lib, googletest, 0,0, 0644, libgmock_main) > + > + @$(call install_finish, googletest) > + > + @$(call touch) > + > +# vim: syntax=make _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de