mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
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>
16 lines
569 B
Plaintext
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
|