diff options
author | jmmv <jmmv@FreeBSD.org> | 2014-11-01 11:17:54 +0000 |
---|---|---|
committer | jmmv <jmmv@FreeBSD.org> | 2014-11-01 11:17:54 +0000 |
commit | 120021745eb3a1c1b24fdc54769f808151deb621 (patch) | |
tree | 7e1f2a559f61d17aad44cfb95b6fefcaa593c4af /contrib/atf/atf-sh/libatf-sh.subr | |
parent | 595e4e5bc797fd4a63eb344ae9df352db666a94d (diff) | |
parent | 3b6cf63a5c1f2de80b3b7fdd30eab1717f5c9407 (diff) | |
download | FreeBSD-src-120021745eb3a1c1b24fdc54769f808151deb621.zip FreeBSD-src-120021745eb3a1c1b24fdc54769f808151deb621.tar.gz |
MFV: Import atf-0.21.
Diffstat (limited to 'contrib/atf/atf-sh/libatf-sh.subr')
-rw-r--r-- | contrib/atf/atf-sh/libatf-sh.subr | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/contrib/atf/atf-sh/libatf-sh.subr b/contrib/atf/atf-sh/libatf-sh.subr index 8525b22..a078975 100644 --- a/contrib/atf/atf-sh/libatf-sh.subr +++ b/contrib/atf/atf-sh/libatf-sh.subr @@ -1,6 +1,3 @@ -# -# Automated Testing Framework (atf) -# # Copyright (c) 2007 The NetBSD Foundation, Inc. # All rights reserved. # @@ -25,9 +22,6 @@ # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# - -set -e # ------------------------------------------------------------------------ # GLOBAL VARIABLES @@ -90,12 +84,13 @@ atf_check() } # -# atf_check_equal expr1 expr2 +# atf_check_equal expected_expression actual_expression # -# Checks that expr1's value matches expr2's and, if not, raises an -# error. Ideally expr1 and expr2 should be provided quoted (not -# expanded) so that the error message is helpful; otherwise it will -# only show the values, not the expressions themselves. +# Checks that expected_expression's value matches actual_expression's +# and, if not, raises an error. Ideally expected_expression and +# actual_expression should be provided quoted (not expanded) so that +# the error message is helpful; otherwise it will only show the values, +# not the expressions themselves. # atf_check_equal() { @@ -595,7 +590,7 @@ _atf_run_tc() _atf_has_tc "${_tcname}" || _atf_syntax_error "Unknown test case \`${1}'" if [ "${__RUNNING_INSIDE_ATF_RUN}" != "internal-yes-value" ]; then - _atf_warning "Running test cases without atf-run(1) is unsupported" + _atf_warning "Running test cases outside of kyua(1) is unsupported" _atf_warning "No isolation nor timeout control is being applied;" \ "you may get unexpected failures; see atf-test-case(4)" fi @@ -741,10 +736,6 @@ main() done shift `expr ${OPTIND} - 1` - # First of all, make sure that the source directory is correct. It - # doesn't matter if the user did not change it, because the default - # value may not work. (TODO: It possibly should, even though it is - # not a big deal because atf-run deals with this.) case ${Source_Dir} in /*) ;; |