Files
buildroot/package/bats-assert/Config.in
Brandon Maier 154663c71e package/bats-assert: new package
bats-assert is a helper library providing common assertions for Bats.

This library does not provide an installer. Manually install the files
under /usr/lib/bats/bats-assert 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-assert/-/blob/main/PKGBUILD?ref_type=heads
[2] https://bats-core.readthedocs.io/en/stable/writing-tests.html#bats-load-library-load-system-wide-libraries

Signed-off-by: Brandon Maier <brandon.maier@collins.com>
yann.morin.1998@free.fr: move as sub-option of bats-core]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2024-05-05 11:08:55 +02:00

16 lines
569 B
Plaintext

config BR2_PACKAGE_BATS_ASSERT
bool "bats-assert"
select BR2_PACKAGE_BATS_SUPPORT # runtime
help
bats-assert is a helper library providing common assertions
for Bats.
In the context of this project, an assertion is a function
that perform a test and returns 1 on failure or 0 on success.
To make debugging easier, the assertion also outputs relevant
information on failure. The output is formatted for
readability. To make assertions usable outside of @test
blocks, the output is sent to stderr.
https://github.com/bats-core/bats-assert