mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] sharness: Add new package
@ 2024-12-17  8:18 Alexander Dahl
  2025-01-16 16:09 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Dahl @ 2024-12-17  8:18 UTC (permalink / raw)
  To: ptxdist

Allows to run unit tests for shell scripts on embedded target as well.

Signed-off-by: Alexander Dahl <ada@thorsis.com>
Link: https://felipec.github.io/sharness/
---
 rules/sharness.in   | 13 +++++++++++
 rules/sharness.make | 56 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)
 create mode 100644 rules/sharness.in
 create mode 100644 rules/sharness.make

diff --git a/rules/sharness.in b/rules/sharness.in
new file mode 100644
index 000000000..7c400584c
--- /dev/null
+++ b/rules/sharness.in
@@ -0,0 +1,13 @@
+## SECTION=test_suites
+
+config SHARNESS
+	tristate
+	prompt "sharness"
+	help
+	  Sharness is a portable shell library to write, run, and
+	  analyze automated tests for Unix programs.
+	  Since all tests output TAP, the Test Anything Protocol,
+	  they can be run with any TAP harness.
+	  Each test is written as a shell script.
+
+# vim: ft=kconfig noet tw=72 ts=8 sw=8
diff --git a/rules/sharness.make b/rules/sharness.make
new file mode 100644
index 000000000..70195b872
--- /dev/null
+++ b/rules/sharness.make
@@ -0,0 +1,56 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2024 by Alexander Dahl <ada@thorsis.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_SHARNESS) += sharness
+
+#
+# Paths and names
+#
+SHARNESS_VERSION	:= 1.2.1
+SHARNESS_MD5		:= b816b21b278688b80453dfd5fbb69556
+SHARNESS		:= sharness-$(SHARNESS_VERSION)
+SHARNESS_SUFFIX		:= tar.gz
+SHARNESS_URL		:= https://github.com/felipec/sharness/archive/refs/tags/v$(SHARNESS_VERSION).$(SHARNESS_SUFFIX)
+SHARNESS_SOURCE		:= $(SRCDIR)/$(SHARNESS).$(SHARNESS_SUFFIX)
+SHARNESS_DIR		:= $(BUILDDIR)/$(SHARNESS)
+SHARNESS_LICENSE	:= GPL-2.0-or-later
+SHARNESS_LICENSE_FILES	:= file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+SHARNESS_CONF_TOOL	:= NO
+SHARNESS_INSTALL_OPT	:= prefix=/usr install
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/sharness.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, sharness)
+	@$(call install_fixup, sharness,PRIORITY,optional)
+	@$(call install_fixup, sharness,SECTION,base)
+	@$(call install_fixup, sharness,AUTHOR,"Alexander Dahl <ada@thorsis.com>")
+	@$(call install_fixup, sharness,DESCRIPTION,missing)
+
+	@$(call install_copy, sharness, 0, 0, 0644, -, \
+		/usr/share/sharness/sharness.sh)
+	@$(call install_copy, sharness, 0, 0, 0644, -, \
+		/usr/share/sharness/lib-sharness/functions.sh)
+
+	@$(call install_finish, sharness)
+
+	@$(call touch)
+
+# vim: ft=make noet tw=72 ts=8 sw=8

base-commit: b922a1e6bf2c7764c3e6032557b259f755464be3
-- 
2.39.5




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

* Re: [ptxdist] [APPLIED] sharness: Add new package
  2024-12-17  8:18 [ptxdist] [PATCH] sharness: Add new package Alexander Dahl
@ 2025-01-16 16:09 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2025-01-16 16:09 UTC (permalink / raw)
  To: ptxdist; +Cc: Alexander Dahl

Thanks, applied as 3a8e153fd8730a2acd5b02840d3ee5b72d26f34f.

Michael

[sent from post-receive hook]

On Thu, 16 Jan 2025 17:09:31 +0100, Alexander Dahl <ada@thorsis.com> wrote:
> Allows to run unit tests for shell scripts on embedded target as well.
> 
> Signed-off-by: Alexander Dahl <ada@thorsis.com>
> Link: https://felipec.github.io/sharness/
> Message-Id: <20241217081825.2032612-1-ada@thorsis.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/sharness.in b/rules/sharness.in
> new file mode 100644
> index 000000000000..7c400584c326
> --- /dev/null
> +++ b/rules/sharness.in
> @@ -0,0 +1,13 @@
> +## SECTION=test_suites
> +
> +config SHARNESS
> +	tristate
> +	prompt "sharness"
> +	help
> +	  Sharness is a portable shell library to write, run, and
> +	  analyze automated tests for Unix programs.
> +	  Since all tests output TAP, the Test Anything Protocol,
> +	  they can be run with any TAP harness.
> +	  Each test is written as a shell script.
> +
> +# vim: ft=kconfig noet tw=72 ts=8 sw=8
> diff --git a/rules/sharness.make b/rules/sharness.make
> new file mode 100644
> index 000000000000..70195b8724bd
> --- /dev/null
> +++ b/rules/sharness.make
> @@ -0,0 +1,56 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2024 by Alexander Dahl <ada@thorsis.com>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_SHARNESS) += sharness
> +
> +#
> +# Paths and names
> +#
> +SHARNESS_VERSION	:= 1.2.1
> +SHARNESS_MD5		:= b816b21b278688b80453dfd5fbb69556
> +SHARNESS		:= sharness-$(SHARNESS_VERSION)
> +SHARNESS_SUFFIX		:= tar.gz
> +SHARNESS_URL		:= https://github.com/felipec/sharness/archive/refs/tags/v$(SHARNESS_VERSION).$(SHARNESS_SUFFIX)
> +SHARNESS_SOURCE		:= $(SRCDIR)/$(SHARNESS).$(SHARNESS_SUFFIX)
> +SHARNESS_DIR		:= $(BUILDDIR)/$(SHARNESS)
> +SHARNESS_LICENSE	:= GPL-2.0-or-later
> +SHARNESS_LICENSE_FILES	:= file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +SHARNESS_CONF_TOOL	:= NO
> +SHARNESS_INSTALL_OPT	:= prefix=/usr install
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/sharness.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, sharness)
> +	@$(call install_fixup, sharness,PRIORITY,optional)
> +	@$(call install_fixup, sharness,SECTION,base)
> +	@$(call install_fixup, sharness,AUTHOR,"Alexander Dahl <ada@thorsis.com>")
> +	@$(call install_fixup, sharness,DESCRIPTION,missing)
> +
> +	@$(call install_copy, sharness, 0, 0, 0644, -, \
> +		/usr/share/sharness/sharness.sh)
> +	@$(call install_copy, sharness, 0, 0, 0644, -, \
> +		/usr/share/sharness/lib-sharness/functions.sh)
> +
> +	@$(call install_finish, sharness)
> +
> +	@$(call touch)
> +
> +# vim: ft=make noet tw=72 ts=8 sw=8



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

end of thread, other threads:[~2025-01-16 16:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-17  8:18 [ptxdist] [PATCH] sharness: Add new package Alexander Dahl
2025-01-16 16:09 ` [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