From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: Re: [ptxdist] [APPLIED] googletest: new package
Date: Wed, 16 Jun 2021 12:35:37 +0200 [thread overview]
Message-ID: <20210616103537.1999646-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20210607130909.4836-1-rhi@pengutronix.de>
Thanks, applied as d02a6c1d0d1d47f0237cb618ad68510267a9fa55.
Michael
[sent from post-receive hook]
On Wed, 16 Jun 2021 12:35:37 +0200, Roland Hieber <rhi@pengutronix.de> wrote:
> Signed-off-by: Roland Hieber <rhi@pengutronix.de>
> Message-Id: <20210607130909.4836-1-rhi@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> 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 <Niklas.Reisser@de.bosch.com>
> +#
> +# 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 <Niklas.Reisser@de.bosch.com>")
> + @$(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
prev parent reply other threads:[~2021-06-16 10:37 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-07 13:09 [ptxdist] [PATCH 1/7] " Roland Hieber
2021-06-07 13:09 ` [ptxdist] [PATCH 2/7] python3-pyro: " Roland Hieber
2021-06-16 10:35 ` [ptxdist] [APPLIED] " Michael Olbrich
2021-06-07 13:09 ` [ptxdist] [PATCH 3/7] host-extract-cert: version bump 0.1 -> 0.2 Roland Hieber
2021-06-16 10:35 ` [ptxdist] [APPLIED] " Michael Olbrich
2021-06-07 13:09 ` [ptxdist] [PATCH 4/7] ima-evm-utils: fix license statement Roland Hieber
2021-06-11 12:24 ` Michael Olbrich
2021-06-07 13:09 ` [ptxdist] [PATCH 5/7] ima-evm-utils: version bump 1.1 -> 1.2.1 Roland Hieber
2021-06-11 12:18 ` Michael Olbrich
2021-06-16 16:01 ` Roland Hieber
2021-06-17 6:44 ` Michael Olbrich
2021-06-17 6:47 ` Michael Olbrich
2021-06-17 7:08 ` Michael Olbrich
2021-06-17 13:01 ` Roland Hieber
2021-06-07 13:09 ` [ptxdist] [PATCH 6/7] rng-tools: allow installing rngtest without rngd Roland Hieber
2021-06-16 10:35 ` [ptxdist] [APPLIED] " Michael Olbrich
2021-06-07 13:09 ` [ptxdist] [PATCH 7/7] systemd: make hostnamed and quotacheck optional Roland Hieber
2021-06-11 8:04 ` Michael Olbrich
2021-06-16 16:14 ` Roland Hieber
2021-06-17 6:45 ` Michael Olbrich
2021-06-16 10:35 ` Michael Olbrich [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210616103537.1999646-1-m.olbrich@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
--cc=rhi@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox