From 080159b303537888c5d41910b4d47a5002638e30 Mon Sep 17 00:00:00 2001 From: Kate Ward Date: Sat, 28 Mar 2020 18:25:13 +0100 Subject: [PATCH] Prepping for the 2.1.8 release. --- doc/RELEASE_NOTES-2.1.8.md | 56 ++++++++++++++++++++++++++++++++++++++ shunit2 | 4 +-- 2 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 doc/RELEASE_NOTES-2.1.8.md diff --git a/doc/RELEASE_NOTES-2.1.8.md b/doc/RELEASE_NOTES-2.1.8.md new file mode 100644 index 0000000..d09d16a --- /dev/null +++ b/doc/RELEASE_NOTES-2.1.8.md @@ -0,0 +1,56 @@ +# shUnit2 2.1.8 Release Notes + +https://github.com/kward/shunit2 + +This release contains bug fixes and enhancements. See the `CHANGES-2.1.md` file +for a full list of changes. + +## New features + +Users can now define a custom prefix for test function names. The prefix can be +configured by defining a `SHUNIT_TEST_PREFIX` variable. + +## Bug fixes + +Syntax errors in functions are now treated as test failures. + +Test now fail when `setup()` or `tearDown()` fail. + +## Deprecated features + +None. + +## Known bugs and issues + +Zsh requires the `shwordsplit` option to be set. See the documentation for examples of how to do this. + +Line numbers in assert messages do not work properly with BASH 2.x. + +The Bourne shell of Solaris, BASH 2.x, and Zsh 3.0.x do not properly catch the +SIGTERM signal. As such, shell interpreter failures due to such things as +unbound variables cannot be caught. (See `shunit_test_misc.sh`) + +shUnit2 does not work when the `-e` shell option is set (typically done with +`set -e`). + +## Tested platforms + +Continuous integration testing is provided by +[Travis CI](https://travis-ci.org/). + +https://travis-ci.org/github/kward/shunit2 + +Tested OSes: + +- Linux +- macOS + +Tested shells: + +- /bin/sh +- ash +- bash +- dash +- ksh +- pdksh +- zsh diff --git a/shunit2 b/shunit2 index 52a039e..6239683 100755 --- a/shunit2 +++ b/shunit2 @@ -1,7 +1,7 @@ #! /bin/sh # vim:et:ft=sh:sts=2:sw=2 # -# Copyright 2008-2019 Kate Ward. All Rights Reserved. +# Copyright 2008-2020 Kate Ward. All Rights Reserved. # Released under the Apache 2.0 license. # http://www.apache.org/licenses/LICENSE-2.0 # @@ -20,7 +20,7 @@ # Return if shunit2 already loaded. command [ -n "${SHUNIT_VERSION:-}" ] && exit 0 -SHUNIT_VERSION='2.1.8pre' +SHUNIT_VERSION='2.1.8' # Return values that scripts can use. SHUNIT_TRUE=0