mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] catch2: new package
@ 2021-03-03  7:59 Alexander Dahl
  2021-03-14 13:29 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Dahl @ 2021-03-03  7:59 UTC (permalink / raw)
  To: ptxdist; +Cc: Alexander Dahl

From: Alexander Dahl <ada@thorsis.com>

Although you could just copy the catch2 header to your own projects, it
might be better to have it in one central place as a package which is
easy to find by CMake at build time.

Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
 rules/catch2.in   | 20 ++++++++++++++++++++
 rules/catch2.make | 45 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)
 create mode 100644 rules/catch2.in
 create mode 100644 rules/catch2.make

diff --git a/rules/catch2.in b/rules/catch2.in
new file mode 100644
index 000000000..26fc41fa6
--- /dev/null
+++ b/rules/catch2.in
@@ -0,0 +1,20 @@
+## SECTION=test_suites
+
+menuconfig CATCH2
+	tristate
+	prompt "Catch2                        "
+	select HOST_CMAKE
+	help
+	  Catch2 is a multi-paradigm test framework for C++ primarily
+	  distributed as a single header file. It comes with convenient
+	  CMake integration.
+
+if CATCH2
+
+config CATCH2_BUILD_TESTING
+	bool
+	prompt "Build SelfTest project"
+
+endif
+
+# vim: ft=kconfig noet tw=72 ts=8 sw=8
diff --git a/rules/catch2.make b/rules/catch2.make
new file mode 100644
index 000000000..0fd7df58a
--- /dev/null
+++ b/rules/catch2.make
@@ -0,0 +1,45 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Alexander Dahl <ada@thorsis.com>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_CATCH2) += catch2
+
+#
+# Paths and names
+#
+CATCH2_VERSION	:= 2.13.4
+CATCH2_MD5	:= bd2deea6e8580c2f55feb325419ee107
+CATCH2		:= Catch2-$(CATCH2_VERSION)
+CATCH2_SUFFIX	:= tar.gz
+CATCH2_URL	:= https://github.com/catchorg/Catch2/archive/v$(CATCH2_VERSION).$(CATCH2_SUFFIX)
+CATCH2_SOURCE	:= $(SRCDIR)/$(CATCH2).$(CATCH2_SUFFIX)
+CATCH2_DIR	:= $(BUILDDIR)/$(CATCH2)
+CATCH2_LICENSE	:= BSL-1.0
+CATCH2_LICENSE_FILES := file://LICENSE.txt;md5=e4224ccaecb14d942c71d31bef20d78c
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+CATCH2_CONF_TOOL	:= cmake
+CATCH2_CONF_OPT		:= \
+	$(CROSS_CMAKE_USR) \
+	-DCATCH_USE_VALGRIND:BOOL=OFF \
+	-DCATCH_BUILD_TESTING:BOOL=$(call ptx/onoff, PTXCONF_CATCH2_BUILD_TESTING) \
+	-DCATCH_BUILD_EXAMPLES:BOOL=OFF \
+	-DCATCH_BUILD_EXTRA_TESTS:BOOL=OFF \
+	-DCATCH_ENABLE_COVERAGE:BOOL=OFF \
+	-DCATCH_ENABLE_WERROR:BOOL=OFF \
+	-DCATCH_INSTALL_DOCS:BOOL=OFF \
+	-DCATCH_INSTALL_HELPERS:BOOL=ON
+
+# vim: ft=make noet tw=72 ts=8 sw=8
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [APPLIED] catch2: new package
  2021-03-03  7:59 [ptxdist] [PATCH] catch2: new package Alexander Dahl
@ 2021-03-14 13:29 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2021-03-14 13:29 UTC (permalink / raw)
  To: ptxdist; +Cc: Alexander Dahl

Thanks, applied as 83c8c74970a3e41ab613ba0e9ddcf8b0d572f0e2.

Michael

[sent from post-receive hook]

On Sun, 14 Mar 2021 14:29:34 +0100, Alexander Dahl <post@lespocky.de> wrote:
> Although you could just copy the catch2 header to your own projects, it
> might be better to have it in one central place as a package which is
> easy to find by CMake at build time.
> 
> Signed-off-by: Alexander Dahl <ada@thorsis.com>
> Message-Id: <20210303075944.7128-1-post@lespocky.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/catch2.in b/rules/catch2.in
> new file mode 100644
> index 000000000000..26fc41fa6e07
> --- /dev/null
> +++ b/rules/catch2.in
> @@ -0,0 +1,20 @@
> +## SECTION=test_suites
> +
> +menuconfig CATCH2
> +	tristate
> +	prompt "Catch2                        "
> +	select HOST_CMAKE
> +	help
> +	  Catch2 is a multi-paradigm test framework for C++ primarily
> +	  distributed as a single header file. It comes with convenient
> +	  CMake integration.
> +
> +if CATCH2
> +
> +config CATCH2_BUILD_TESTING
> +	bool
> +	prompt "Build SelfTest project"
> +
> +endif
> +
> +# vim: ft=kconfig noet tw=72 ts=8 sw=8
> diff --git a/rules/catch2.make b/rules/catch2.make
> new file mode 100644
> index 000000000000..0fd7df58a014
> --- /dev/null
> +++ b/rules/catch2.make
> @@ -0,0 +1,45 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2021 by Alexander Dahl <ada@thorsis.com>
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_CATCH2) += catch2
> +
> +#
> +# Paths and names
> +#
> +CATCH2_VERSION	:= 2.13.4
> +CATCH2_MD5	:= bd2deea6e8580c2f55feb325419ee107
> +CATCH2		:= Catch2-$(CATCH2_VERSION)
> +CATCH2_SUFFIX	:= tar.gz
> +CATCH2_URL	:= https://github.com/catchorg/Catch2/archive/v$(CATCH2_VERSION).$(CATCH2_SUFFIX)
> +CATCH2_SOURCE	:= $(SRCDIR)/$(CATCH2).$(CATCH2_SUFFIX)
> +CATCH2_DIR	:= $(BUILDDIR)/$(CATCH2)
> +CATCH2_LICENSE	:= BSL-1.0
> +CATCH2_LICENSE_FILES := file://LICENSE.txt;md5=e4224ccaecb14d942c71d31bef20d78c
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +CATCH2_CONF_TOOL	:= cmake
> +CATCH2_CONF_OPT		:= \
> +	$(CROSS_CMAKE_USR) \
> +	-DCATCH_USE_VALGRIND:BOOL=OFF \
> +	-DCATCH_BUILD_TESTING:BOOL=$(call ptx/onoff, PTXCONF_CATCH2_BUILD_TESTING) \
> +	-DCATCH_BUILD_EXAMPLES:BOOL=OFF \
> +	-DCATCH_BUILD_EXTRA_TESTS:BOOL=OFF \
> +	-DCATCH_ENABLE_COVERAGE:BOOL=OFF \
> +	-DCATCH_ENABLE_WERROR:BOOL=OFF \
> +	-DCATCH_INSTALL_DOCS:BOOL=OFF \
> +	-DCATCH_INSTALL_HELPERS:BOOL=ON
> +
> +# vim: ft=make noet tw=72 ts=8 sw=8

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-14 13:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-03  7:59 [ptxdist] [PATCH] catch2: new package Alexander Dahl
2021-03-14 13:29 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox