summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-test/bats
Commit message (Collapse)AuthorAgeFilesLines
* bats: use baselibJoe Slater2023-05-311-3/+5
| | | | | | | | | | Use sed to change scripts to reference ${baselib}. The former set of scripts modified was incomplete. Signed-off-by: Joe Slater <joe.slater@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 1cc72c41af0c6a55a10be9158a2f856b02a56282) Signed-off-by: Armin Kuster <akuster808@gmail.com>
* bats: upgrade 1.8.2 -> 1.9.0Wang Mingyu2023-03-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added: ======= -add installation instructions for Debian, Fedora, Gentoo, and OpenSUSE (#659) -add --line-reference-format to switch file/line references in stack traces (#665) comma_line (default): file.bats, line 1 colon: file.bats:1 uri: file:///path/to/file.bats:1 custom: define your own formatter in bats_format_file_line_reference_custom -add bats:focus tag to run only focused tests (#679) -add bats-support, bats-assert, bats-file and bats-detik to Dockerfile (#674) Documentation: ============== -add --help text and man page content for --filter-tags (#679) -improved clarity of section about output in free code (#671) -fixed typos (#673) -clarify use cases of run (#366) Fixed: ======= -explicitly check for GNU parallel (#691) -wait for report-formatter to finish before ending bats' execution, to fix empty files with --report-fomatter junit under Docker (#692) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bats: upgrade 1.8.0 -> 1.8.2Wang Mingyu2022-10-241-1/+1
| | | | | Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bats: upgrade 1.7.0 -> 1.8.0wangmy2022-09-201-1/+1
| | | | | Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bats: upgrade 1.6.1 -> 1.7.0wangmy2022-07-071-3/+3
| | | | | | | Changelog:https://github.com/bats-core/bats-core/releases/tag/v1.7.0 Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bats: upgrade 1.6.0 -> 1.6.1Diego Sueiro2022-05-162-154/+3
| | | | | | | | | | | | | | | | | | | | | | | | The 1.6.1 incorporates the 0001-Fix-status-in-teardown-overriding-exit-code.patch backport patch. Changelog: ========== Fixed: ------ prevent teardown, teardown_file, and teardown_suite from overriding bats' exit code by setting $status (e.g. via calling run) (#581, #575) CRITICAL: this can return exit code 0 despite failed tests, thus preventing your CI from reporting test failures! The regression happened in version 1.6.0. Documentation: -------------- corrected invalid documentation of run -N (had =N instead) (#579) CRITICAL: using the incorrect form can lead to silent errors. See issue #578 for more details and how to find out if your tests are affected. Signed-off-by: Diego Sueiro <diego.sueiro@arm.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bats: Add patch to fix false-negatives caused by teardown codeRichard Neill2022-05-092-2/+156
| | | | | | | | | | | | BATS v1.6.0 has a regression which can result in test case failures being ignored when teardown code executes successfully. This patch applies the accepted bug-fix until the next BATS release. Also, fix a comment that wasn't updated during the BATS upgrade, to match the correct release (v1.6.0) associated with the SRCREV. Signed-off-by: Richard Neill <richard.neill@arm.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bats: upgrade 1.5.0 -> 1.6.0Wang Mingyu2022-03-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changelog: ========= Added: ----- new flag --code-quote-style (and $BATS_CODE_QUOTE_STYLE) to customize quotes around code blocks in error output (#506) an example/regression test for running background tasks without blocking the test run (#525, #535) bats_load_library for loading libraries from the search path $BATS_LIB_PATH (#548) Fixed: ----- improved error trace for some broken cases (#279) removed leftover debug file /tmp/latch in selftest suite (single use latch) (#516) fix recurring errors on CTRL+C tests with NPM on Windows in selftest suite (#516) fixed leaking of local variables from debug trap (#520) don't mark FD3 output from teardown_file as <failure> in junit output (#532) fix unbound variable error with Bash pre 4.4 (#550) Documentation: -------------- remove links to defunct freenode IRC channel (#515) improved grammar (#534) fixed link to TAP spec (#537) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bats: upgrade 1.4.1 -> 1.5.0wangmy2022-01-072-47/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* recipes: Update SRC_URI branch and protocolsRichard Purdie2021-11-031-1/+1
| | | | | | | | | This patch updates SRC_URIs using git to include branch=master if no branch is set and also to use protocol=https for github urls as generated by the conversion script in OE-Core. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bats: source files from correct directorySakib Sajal2021-09-241-0/+6
| | | | | | | | | | | Files are installed in ${baselib} directory when multilib is enabled and not in the hardcoded lib directory making it fail to source bats-core files. Parameterize the libdir such that the files are sources correctly. Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Convert to new override syntaxMartin Jansa2021-08-031-2/+2
| | | | | | | | | | This is the result of automated script (0.9.1) conversion: oe-core/scripts/contrib/convert-overrides.py . converting the metadata to use ":" as the override character instead of "_". Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* bats: upgrade 1.3.0 -> 1.4.1wangmy2021-07-291-2/+2
| | | | | | | | | | | | | Added: Docker image architectures amd64, 386, arm64, arm/v7, arm/v6, ppc64le, s390x https://github.com/bats-core/bats-core/pull/438 Fixed: automatic push to Dockerhub https://github.com/bats-core/bats-core/pull/438 Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bats: fix qa issue when multilib eanbledKai Kang2021-06-302-1/+45
| | | | | | | | | | | | | | Fix qa issue for bats when multilib is enabled: | ERROR: bats-1.3.0-r0 do_package: QA Issue: bats: Files/directories were installed but not shipped in any package: | /usr/lib | /usr/lib/bats-core | /usr/lib/bats-core/formatter.bash | /usr/lib/bats-core/test_functions.bash Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bats: upgrade 1.1.0 -> 1.3.0Kamil Dziezyk2021-04-151-3/+7
| | | | | | | | | Add 'pretty' PACKAGECONFIG option with ncurses runtime dependency. This option allows to display test results with '--formatter pretty|-p' bats command line option. Signed-off-by: Kamil Dziezyk <kamil.dziezyk@arm.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bats: new packageBartosz Golaszewski2019-07-261-0/+21
This adds a recipe for the bats package. Bats is a TAP-compliant testing framework for Bash. The recipe is very simple - it just installs a bunch of bash scripts. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>