mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-17 20:51:57 +02:00
0001-install.sh-consider-multilib.patch removed since it is included in 1.5.0 Changelog: Issues for this release <https://github.com/bats-core/bats-core/pull/####> ========= Added: --------- new command line flags (#488) --verbose-run: Make run print $output by default -x, --trace: Print test commands as they are executed (like set -x)` --show-output-of-passing-tests: Print output of passing tests --print-output-on-failure: Automatically print the value of $output on failed tests --gather-test-outputs-in <directory>: Gather the output of failing and passing tests as files in directory Experimental: add return code checks to run via !/-<N> (#367, #507) install.sh and uninstall.sh take an optional second parameter for the lib folder name to allow for multilib install, e.g. into lib64 (#452) add run flag --keep-empty-lines to retain empty lines in ${lines[@]} (#224, a894fbf) add run flag --separate-stderr which also fills $stderr and $stderr_lines (#47, 5c9b173d, #507) Fixed: --------- don't glob run's $output when splitting into ${lines[@]} (#151, #152, #158, #156, #281, #289) remove empty line after test with pretty formatter on some terminals (#481) don't run setup_file/teardown_file on files without tests, e.g. due to filtering (#484) print final line without newline on Bash 3.2 for midtest (ERREXIT) failures too (#495, #145) abort with error on missing flock/shlock when running in parallel mode (#496) improved set -u test and fixed some unset variable accesses (#498, #501) shorten suite/file/test temporary folder paths to leave enough space even on restricted systems (#503) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
31 lines
1.1 KiB
BlitzBasic
31 lines
1.1 KiB
BlitzBasic
SUMMARY = "Bash Automated Testing System"
|
|
DESCRIPTION = "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."
|
|
AUTHOR = "Sam Stephenson & bats-core organization"
|
|
HOMEPAGE = "https://github.com/bats-core/bats-core"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=2970203aedf9e829edb96a137a4fe81b"
|
|
|
|
SRC_URI = "git://github.com/bats-core/bats-core.git;branch=master;protocol=https"
|
|
# v1.4.1
|
|
SRCREV = "99d64eb017abcd6a766dd0d354e625526da69cb3"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
do_configure:prepend() {
|
|
sed -i 's:\$BATS_ROOT/lib:\$BATS_ROOT/${baselib}:g' ${S}/libexec/bats-core/bats
|
|
sed -i 's:\$BATS_ROOT/lib:\$BATS_ROOT/${baselib}:g' ${S}/libexec/bats-core/bats-exec-file
|
|
sed -i 's:\$BATS_ROOT/lib:\$BATS_ROOT/${baselib}:g' ${S}/libexec/bats-core/bats-exec-test
|
|
}
|
|
|
|
do_install() {
|
|
# Just a bunch of bash scripts to install
|
|
${S}/install.sh ${D}${prefix} ${baselib}
|
|
}
|
|
|
|
RDEPENDS:${PN} = "bash"
|
|
FILES:${PN} += "${libdir}/bats-core/*"
|
|
|
|
PACKAGECONFIG ??= "pretty"
|
|
PACKAGECONFIG[pretty] = ",,,ncurses"
|