* [Buildroot] [PATCH] package: add bats-core package
@ 2019-04-02 13:21 Peter Korsgaard
2019-04-03 20:25 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Peter Korsgaard @ 2019-04-02 13:21 UTC (permalink / raw)
To: buildroot
A bash-based automated testing system.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/bats-core/Config.in | 11 +++++++++++
package/bats-core/bats-core.hash | 5 +++++
package/bats-core/bats-core.mk | 16 ++++++++++++++++
5 files changed, 34 insertions(+)
create mode 100644 package/bats-core/Config.in
create mode 100644 package/bats-core/bats-core.hash
create mode 100644 package/bats-core/bats-core.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 1001d55815..c668c82cf1 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1716,6 +1716,7 @@ F: configs/orangepi_pc_defconfig
F: configs/pandaboard_defconfig
F: configs/roseapplepi_defconfig
F: configs/sheevaplug_defconfig
+F: package/bats-core/
F: package/docker-compose/
F: package/dump1090/
F: package/flickcurl/
diff --git a/package/Config.in b/package/Config.in
index db79b61971..d4fb61240c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -138,6 +138,7 @@ menu "Debugging, profiling and benchmark"
endmenu
menu "Development tools"
+ source "package/bats-core/Config.in"
source "package/binutils/Config.in"
source "package/bsdiff/Config.in"
source "package/bustle/Config.in"
diff --git a/package/bats-core/Config.in b/package/bats-core/Config.in
new file mode 100644
index 0000000000..73c38e5a04
--- /dev/null
+++ b/package/bats-core/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_BATS_CORE
+ bool "bats"
+ depends on BR2_PACKAGE_BASH # runtime
+ help
+ Bats: Bash Automated Testing System
+
+ Bats is a TAP-compliant testing framework for Bash. It
+ provides a simple way to verify that the UNIX programs you
+ write behave as expected.
+
+ https://github.com/bats-core/bats-core
diff --git a/package/bats-core/bats-core.hash b/package/bats-core/bats-core.hash
new file mode 100644
index 0000000000..04e00ab601
--- /dev/null
+++ b/package/bats-core/bats-core.hash
@@ -0,0 +1,5 @@
+# Locally calculated
+sha256 855d8b8bed466bc505e61123d12885500ef6fcdb317ace1b668087364717ea82 bats-core-v1.1.0.tar.gz
+
+# License files
+sha256 55074b2b3b87809105034e1468e59076554d76a80c67bcc592000cc3d929852d LICENSE.md
diff --git a/package/bats-core/bats-core.mk b/package/bats-core/bats-core.mk
new file mode 100644
index 0000000000..739e7fc1f0
--- /dev/null
+++ b/package/bats-core/bats-core.mk
@@ -0,0 +1,16 @@
+################################################################################
+#
+# bats-core
+#
+################################################################################
+
+BATS_CORE_VERSION = v1.1.0
+BATS_CORE_SITE = $(call github,bats-core,bats-core,$(BATS_CORE_VERSION))
+BATS_CORE_LICENSE = MIT
+BATS_CORE_LICENSE_FILES = LICENSE.md
+
+define BATS_CORE_INSTALL_TARGET_CMDS
+ $(@D)/install.sh $(TARGET_DIR)/usr
+endef
+
+$(eval $(generic-package))
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] package: add bats-core package
2019-04-02 13:21 [Buildroot] [PATCH] package: add bats-core package Peter Korsgaard
@ 2019-04-03 20:25 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2019-04-03 20:25 UTC (permalink / raw)
To: buildroot
Hello,
On Tue, 2 Apr 2019 15:21:42 +0200
Peter Korsgaard <peter@korsgaard.com> wrote:
> A bash-based automated testing system.
>
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Our canonical commit title for new packages is:
package/foo: new package
so I fixed that up and applied. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-04-03 20:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-02 13:21 [Buildroot] [PATCH] package: add bats-core package Peter Korsgaard
2019-04-03 20:25 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.