Accepting request 933599 from home:dirkmueller:Factory
- update to 1.5.0: * new command line flags * `--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>` * `install.sh` and `uninstall.sh` take an optional second parameter for the lib folder name to allow for multilib install, e.g. into lib64 * add `run` flag `--keep-empty-lines` to retain empty lines in `${lines[@]}` * add `run` flag `--separate-stderr` which also fills `$stderr` and `$stderr_lines` * don't glob `run`'s `$output` when splitting into `${lines[@]}` * remove empty line after test with pretty formatter on some terminals * don't run setup_file/teardown_file on files without tests, e.g. due to filtering * print final line without newline on Bash 3.2 for midtest (ERREXIT) failures * abort with error on missing flock/shlock when running in parallel mode * improved `set -u` test and fixed some unset variable accesses * shorten suite/file/test temporary folder paths to leave enough space even on restricted systems * added BATS_TEST_TMPDIR, BATS_FILE_TMPDIR, BATS_SUITE_TMPDIR * added checks and improved documentation for `$BATS_TMPDIR` * the docker container now uses [tini](https://github.com/krallin/tini) as the container entrypoint to improve signal forwarding * script to uninstall bats from a given prefix * replace preprocessed file path (e.g. `/tmp/bats-run-22908-NP0f9h/bats.23102.src`) OBS-URL: https://build.opensuse.org/request/show/933599 OBS-URL: https://build.opensuse.org/package/show/devel:tools/bats?expand=0&rev=23
This commit is contained in:
parent
080e1577bd
commit
3f85e900a0
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1d5075e6e712dc15fbe818b9d88605dbc8908269857f054b046321a4b9cba089
|
||||
size 78392
|
3
bats-core-1.5.0.tar.gz
Normal file
3
bats-core-1.5.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:36a3fd4413899c0763158ae194329af8f48bb1ff0d1338090b80b3416d5793af
|
||||
size 108052
|
37
bats.changes
37
bats.changes
@ -1,3 +1,40 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 24 23:53:57 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 1.5.0:
|
||||
* new command line flags
|
||||
* `--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>`
|
||||
* `install.sh` and `uninstall.sh` take an optional second parameter for the lib
|
||||
folder name to allow for multilib install, e.g. into lib64
|
||||
* add `run` flag `--keep-empty-lines` to retain empty lines in `${lines[@]}`
|
||||
* add `run` flag `--separate-stderr` which also fills `$stderr` and
|
||||
`$stderr_lines`
|
||||
* don't glob `run`'s `$output` when splitting into `${lines[@]}`
|
||||
* remove empty line after test with pretty formatter on some terminals
|
||||
* don't run setup_file/teardown_file on files without tests, e.g. due to
|
||||
filtering
|
||||
* print final line without newline on Bash 3.2 for midtest (ERREXIT) failures
|
||||
* abort with error on missing flock/shlock when running in parallel mode
|
||||
* improved `set -u` test and fixed some unset variable accesses
|
||||
* shorten suite/file/test temporary folder paths to leave enough space even on
|
||||
restricted systems
|
||||
* added BATS_TEST_TMPDIR, BATS_FILE_TMPDIR, BATS_SUITE_TMPDIR
|
||||
* added checks and improved documentation for `$BATS_TMPDIR`
|
||||
* the docker container now uses [tini](https://github.com/krallin/tini) as the
|
||||
container entrypoint to improve signal forwarding
|
||||
* script to uninstall bats from a given prefix
|
||||
* replace preprocessed file path (e.g. `/tmp/bats-run-22908-NP0f9h/bats.23102.src`)
|
||||
with original filename in stdout/err (but not FD3!)
|
||||
* print aborted command on SIGINT/CTRL+C
|
||||
* print error message when BATS_RUN_TMPDIR could not be created
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 18 17:54:00 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>
|
||||
|
||||
|
@ -18,13 +18,13 @@
|
||||
|
||||
%define pname %{name}-core
|
||||
Name: bats
|
||||
Version: 1.3.0
|
||||
Version: 1.5.0
|
||||
Release: 0
|
||||
Summary: Bash Automated Testing System
|
||||
License: MIT
|
||||
Group: Development/Tools/Other
|
||||
URL: https://github.com/%{pname}/%{pname}/
|
||||
Source: %{URL}/archive/v%{version}.tar.gz#/%{pname}-%{version}.tar.gz
|
||||
Source: https://github.com/%{pname}/%{pname}/archive/v%{version}.tar.gz#/%{pname}-%{version}.tar.gz
|
||||
BuildRequires: ncurses-utils
|
||||
Requires: gnu_parallel
|
||||
BuildArch: noarch
|
||||
|
Loading…
Reference in New Issue
Block a user