Deleted Added
sdiff udiff text old ( 240120 ) new ( 273929 )
full compact
1# Copyright (c) 2007 The NetBSD Foundation, Inc.
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions
6# are met:
7# 1. Redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17# IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
18# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
20# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
22# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
23# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
24# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
26# ------------------------------------------------------------------------
27# GLOBAL VARIABLES
28# ------------------------------------------------------------------------
29
30# Values for the expect property.
31Expect=pass
32Expect_Reason=
33

--- 45 unchanged lines hidden (view full) ---

79#
80atf_check()
81{
82 ${Atf_Check} "${@}" || \
83 atf_fail "atf-check failed; see the output of the test for details"
84}
85
86#
87# atf_check_equal expected_expression actual_expression
88#
89# Checks that expected_expression's value matches actual_expression's
90# and, if not, raises an error. Ideally expected_expression and
91# actual_expression should be provided quoted (not expanded) so that
92# the error message is helpful; otherwise it will only show the values,
93# not the expressions themselves.
94#
95atf_check_equal()
96{
97 eval _val1=\"${1}\"
98 eval _val2=\"${2}\"
99 test "${_val1}" = "${_val2}" || \
100 atf_fail "${1} != ${2} (${_val1} != ${_val2})"
101}

--- 483 unchanged lines hidden (view full) ---

585 _tcname=${1}
586 _tcpart=body
587 ;;
588 esac
589
590 _atf_has_tc "${_tcname}" || _atf_syntax_error "Unknown test case \`${1}'"
591
592 if [ "${__RUNNING_INSIDE_ATF_RUN}" != "internal-yes-value" ]; then
593 _atf_warning "Running test cases outside of kyua(1) is unsupported"
594 _atf_warning "No isolation nor timeout control is being applied;" \
595 "you may get unexpected failures; see atf-test-case(4)"
596 fi
597
598 _atf_parse_head ${_tcname}
599
600 case ${_tcpart} in
601 body)

--- 129 unchanged lines hidden (view full) ---

731 \?)
732 _atf_syntax_error "Unknown option -${OPTARG}."
733 # NOTREACHED
734 ;;
735 esac
736 done
737 shift `expr ${OPTIND} - 1`
738
739 case ${Source_Dir} in
740 /*)
741 ;;
742 *)
743 Source_Dir=$(pwd)/${Source_Dir}
744 ;;
745 esac
746 [ -f ${Source_Dir}/${Prog_Name} ] || \

--- 24 unchanged lines hidden ---