mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 1/8] cpputest: new package: C++ unit test framework
@ 2023-05-15  7:20 Roland Hieber
  2023-05-15  7:20 ` [ptxdist] [PATCH 2/8] libbson: new package: routines related to BSON documents Roland Hieber
                   ` (7 more replies)
  0 siblings, 8 replies; 14+ messages in thread
From: Roland Hieber @ 2023-05-15  7:20 UTC (permalink / raw)
  To: ptxdist; +Cc: Roland Hieber

Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 patches/cpputest-3.8/autogen.sh |  1 +
 rules/cpputest.in               |  7 +++++
 rules/cpputest.make             | 56 +++++++++++++++++++++++++++++++++
 rules/host-cpputest.in          |  5 +++
 rules/host-cpputest.make        | 23 ++++++++++++++
 5 files changed, 92 insertions(+)
 create mode 120000 patches/cpputest-3.8/autogen.sh
 create mode 100644 rules/cpputest.in
 create mode 100644 rules/cpputest.make
 create mode 100644 rules/host-cpputest.in
 create mode 100644 rules/host-cpputest.make

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 <rhi@pengutronix.de>
+#
+# 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..4291806b9d55
--- /dev/null
+++ b/rules/host-cpputest.make
@@ -0,0 +1,23 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2023 by Roland Hieber <rhi@pengutronix.de>
+#
+# 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
+
+# vim: syntax=make
-- 
2.39.2




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

end of thread, other threads:[~2023-05-24 22:23 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-15  7:20 [ptxdist] [PATCH 1/8] cpputest: new package: C++ unit test framework Roland Hieber
2023-05-15  7:20 ` [ptxdist] [PATCH 2/8] libbson: new package: routines related to BSON documents Roland Hieber
2023-05-15  7:26   ` [ptxdist] [PATCH] fixup! " Roland Hieber
2023-05-17 12:38   ` [ptxdist] [PATCH 2/8] " Michael Olbrich
2023-05-15  7:20 ` [ptxdist] [PATCH 3/8] libconfig: correct license and pin down license files Roland Hieber
2023-05-15  7:20 ` [ptxdist] [PATCH 4/8] libevent: amend license and pin down license file Roland Hieber
2023-05-15  7:20 ` [ptxdist] [PATCH 5/8] htmldoc: new package: HTML-to-PDF/PostScript/EPUB converter Roland Hieber
2023-05-17 12:29   ` Michael Olbrich
2023-05-15  7:20 ` [ptxdist] [PATCH 6/8] host-canfestival: add host package Roland Hieber
2023-05-17 12:36   ` Michael Olbrich
2023-05-24 22:04     ` Roland Hieber
2023-05-15  7:20 ` [ptxdist] [PATCH 7/8] host-libconfig: " Roland Hieber
2023-05-15  7:20 ` [ptxdist] [PATCH 8/8] host-libevent: " Roland Hieber
2023-05-17 12:27 ` [ptxdist] [PATCH 1/8] cpputest: new package: C++ unit test framework Michael Olbrich

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