mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 00:04:06 -09:00
This library provides support functions needed by the bats-assert and bats-file libraries. This library does not provide an installer. Manually install the files under /usr/lib/bats/bats-support which is what the Arch Linux package does[1]. This makes the library loadable using `bats_load_library`[2]. [1] https://gitlab.archlinux.org/archlinux/packaging/packages/bats-support/-/blob/main/PKGBUILD?ref_type=heads [2] https://bats-core.readthedocs.io/en/stable/writing-tests.html#bats-load-library-load-system-wide-libraries There are going to be a few such helpers to be introduced later, so we make them all appear as sub-options of the main package, bats-core. Signed-off-by: Brandon Maier <brandon.maier@collins.com> [yann.morin.1998@free.fr: - move as sub-option of bats-core - explain why in commit log ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
19 lines
664 B
Makefile
19 lines
664 B
Makefile
################################################################################
|
|
#
|
|
# bats-support
|
|
#
|
|
################################################################################
|
|
|
|
BATS_SUPPORT_VERSION = 0.3.0
|
|
BATS_SUPPORT_SITE = $(call github,bats-core,bats-support,v$(BATS_SUPPORT_VERSION))
|
|
BATS_SUPPORT_LICENSE = CC0-1.0
|
|
BATS_SUPPORT_LICENSE_FILES = LICENSE
|
|
|
|
define BATS_SUPPORT_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/lib/bats/bats-support/src
|
|
$(INSTALL) -m 0755 $(@D)/*.bash -t $(TARGET_DIR)/usr/lib/bats/bats-support
|
|
$(INSTALL) -m 0755 $(@D)/src/*.bash -t $(TARGET_DIR)/usr/lib/bats/bats-support/src
|
|
endef
|
|
|
|
$(eval $(generic-package))
|