From 3f85e900a0c49ce214fb2a918629127e8d0d0192301d5d3a62c1d6600902222e Mon Sep 17 00:00:00 2001 From: Olav Reinert Date: Sun, 28 Nov 2021 15:06:21 +0000 Subject: [PATCH] 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 `: Gather the output of failing **and** passing tests as files in directory * Experimental: add return code checks to `run` via `!`/`-` * `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 --- bats-core-1.3.0.tar.gz | 3 --- bats-core-1.5.0.tar.gz | 3 +++ bats.changes | 37 +++++++++++++++++++++++++++++++++++++ bats.spec | 4 ++-- 4 files changed, 42 insertions(+), 5 deletions(-) delete mode 100644 bats-core-1.3.0.tar.gz create mode 100644 bats-core-1.5.0.tar.gz diff --git a/bats-core-1.3.0.tar.gz b/bats-core-1.3.0.tar.gz deleted file mode 100644 index a43bc00..0000000 --- a/bats-core-1.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1d5075e6e712dc15fbe818b9d88605dbc8908269857f054b046321a4b9cba089 -size 78392 diff --git a/bats-core-1.5.0.tar.gz b/bats-core-1.5.0.tar.gz new file mode 100644 index 0000000..420e90f --- /dev/null +++ b/bats-core-1.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:36a3fd4413899c0763158ae194329af8f48bb1ff0d1338090b80b3416d5793af +size 108052 diff --git a/bats.changes b/bats.changes index f5a4cec..3cbecdf 100644 --- a/bats.changes +++ b/bats.changes @@ -1,3 +1,40 @@ +------------------------------------------------------------------- +Wed Nov 24 23:53:57 UTC 2021 - Dirk Müller + +- 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 `: Gather the output of failing **and** + passing tests as files in directory + * Experimental: add return code checks to `run` via `!`/`-` + * `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 diff --git a/bats.spec b/bats.spec index e3818f2..43b16cf 100644 --- a/bats.spec +++ b/bats.spec @@ -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