From cb5fdd5e6e3ea8b5c61a4623cd517eed9d731667 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Tue, 11 Nov 2025 15:54:55 +0800 Subject: bats: upgrade 1.12.0 -> 1.13.0 Added ======== - use the syntax parser directive to declare the Dockerfile syntax version - Negative test filtering via --negative-filter - tests matching the filter are excluded - fail-fast flag --abort to stop test suite execution on first failure Fixed: ======== - unset output, stderr, lines, stderr_lines at the start of run to avoid crosstalk - between successive invocations - junit: XML escape fully removes ANSI sequences, e.g. color codes, cursor movements fix retried tests being listed multiple times fix crash when setup_suite fails - remove deprecated windows runner - renamed docker-compose.yml to compose.yaml - bats_test_function: don't require --tags to be sorted - fix BATS_TEST_TIMEOUT - not stopping processes under run - prolonging skipped tests Documentation: =============== - moved 3rd-party libraries list into wiki Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- meta-oe/recipes-test/bats/bats_1.12.0.bb | 33 -------------------------------- meta-oe/recipes-test/bats/bats_1.13.0.bb | 33 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 33 deletions(-) delete mode 100644 meta-oe/recipes-test/bats/bats_1.12.0.bb create mode 100644 meta-oe/recipes-test/bats/bats_1.13.0.bb (limited to 'meta-oe') diff --git a/meta-oe/recipes-test/bats/bats_1.12.0.bb b/meta-oe/recipes-test/bats/bats_1.12.0.bb deleted file mode 100644 index 14a234c866..0000000000 --- a/meta-oe/recipes-test/bats/bats_1.12.0.bb +++ /dev/null @@ -1,33 +0,0 @@ -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." -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.12.0 -SRCREV = "713504bc0224a19b3d7c7958c18dc07f64f54b44" - - -# Numerous scripts assume ${baselib} == lib, which is not true. -# -do_configure:prepend() { - for f in ${S}/libexec/bats-core/* ${S}/lib/bats-core/* ; do - sed -i 's:\$BATS_ROOT/lib/:\$BATS_ROOT/${baselib}/:g' $f - done -} - -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" diff --git a/meta-oe/recipes-test/bats/bats_1.13.0.bb b/meta-oe/recipes-test/bats/bats_1.13.0.bb new file mode 100644 index 0000000000..3545295a3c --- /dev/null +++ b/meta-oe/recipes-test/bats/bats_1.13.0.bb @@ -0,0 +1,33 @@ +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." +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;tag=v${PV} \ + " + +# v1.13.0 +SRCREV = "3bca150ec86275d6d9d5a4fd7d48ab8b6c6f3d87" + + +# Numerous scripts assume ${baselib} == lib, which is not true. +# +do_configure:prepend() { + for f in ${S}/libexec/bats-core/* ${S}/lib/bats-core/* ; do + sed -i 's:\$BATS_ROOT/lib/:\$BATS_ROOT/${baselib}/:g' $f + done +} + +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" -- cgit v1.2.3-54-g00ecf