Searched refs:TEST_SH (Results 1 - 24 of 24) sorted by relevance
| /src/tests/bin/sh/ |
| H A D | t_redircloexec.sh | 31 : ${TEST_SH:="/bin/sh"} 56 "exec 6> out; echo exec1 >&6; ${TEST_SH} exec2; exec 6>&-" 58 atf_check -s exit:0 -o empty -e not-empty ${TEST_SH} ./exec1 59 atf_check -s not-exit:0 -o empty -e not-empty ${TEST_SH} -e ./exec1 62 "exec 9> out; echo exec1 >&9; ${TEST_SH} exec2" 64 atf_check -s not-exit:0 -o empty -e not-empty ${TEST_SH} ./exec1 68 "printf OK; ${TEST_SH} exec2; printf ERR" 71 ${TEST_SH} -e ./exec1 75 "printf OK; ${TEST_SH} exec2 || printf ERR" 78 ${TEST_SH} [all...] |
| H A D | t_arith.sh | 28 : ${TEST_SH:="/bin/sh"} 41 # ATF_SHELL (or even TEST_SH) might not be as big as that 42 # supported by $(( )) in TEST_SH 44 if ! ${TEST_SH} -c ': $(( 0x10000 ))' 2>/dev/null 49 test $( ${TEST_SH} -c 'echo $(( 0x1FFFF ))' ) = 131071 || return 64 if ! ${TEST_SH} -c ': $(( 0xC0000000 ))' 2>/dev/null 70 if ${TEST_SH} 2>/dev/null \ 76 if ${TEST_SH} -c '[ $(( 0xC0000000 )) != 3221225472 ]' 2>/dev/null 82 if ! ${TEST_SH} -c ': $(( 0xC000000000000000 ))' 2>/dev/null 87 if ${TEST_SH} [all...] |
| H A D | t_ulimit.sh | 28 : ${TEST_SH:="/bin/sh"} 38 local limits=$(${TEST_SH} -c 'ulimit -a' | 48 atf_check -s exit:0 -o ignore -e empty ${TEST_SH} -c "ulimit -a" 51 atf_check -s exit:0 -o ignore -e empty ${TEST_SH} -c "ulimit $l"
|
| H A D | t_syntax.sh | 27 : ${TEST_SH:=/bin/sh} 52 atf_check -s exit:0 -o 'inline:3\n' -e empty ${TEST_SH} -c \ 54 atf_check -s exit:0 -o 'inline:2\n' -e empty ${TEST_SH} -c \ 56 atf_check -s exit:0 -o 'inline:3\n' -e empty ${TEST_SH} -c \ 58 atf_check -s exit:0 -o 'inline:3\n' -e empty ${TEST_SH} -c \ 61 atf_check -s exit:0 -o 'inline:3\n' -e empty ${TEST_SH} -c \ 63 atf_check -s exit:0 -o 'inline:1\n' -e empty ${TEST_SH} -c \ 65 atf_check -s exit:0 -o 'inline:1\n' -e empty ${TEST_SH} -c \ 67 atf_check -s exit:0 -o 'inline:1\n' -e empty ${TEST_SH} -c \ 69 atf_check -s exit:0 -o 'inline:2\n' -e empty ${TEST_SH} [all...] |
| H A D | t_cmdsub.sh | 28 : ${TEST_SH:="/bin/sh"} 44 ${TEST_SH} -c \ 48 ${TEST_SH} -c \ 52 ${TEST_SH} -c 'echo aaa$( echo bbb )ccc' 54 ${TEST_SH} -c 'echo aaa$( echo bbb ccc )ddd' 56 ${TEST_SH} -c 'echo aaa$( echo bbb; echo ccc )ddd' 58 ${TEST_SH} -c 'echo "aaa$( echo bbb; echo ccc )ddd"' 61 ${TEST_SH} -c 'X=$( echo some string ); echo "$X"' 63 ${TEST_SH} -c 'X=$( echo "weird; string *" ); echo "$X"' 72 ${TEST_SH} [all...] |
| H A D | t_evaltested.sh | 28 : ${TEST_SH:="/bin/sh"} 48 output="$($TEST_SH helper.sh)"
|
| H A D | t_builtins.sh | 28 : ${TEST_SH:="/bin/sh"} 61 ${TEST_SH} -c "( $3 $1 $4 ) >/dev/null 2>&1" && 62 LC_ALL=C ${TEST_SH} -c \ 69 test -z "$2" && atf_skip "${TEST_SH} has no '$1$5' built-in" 88 test -n "$( ${TEST_SH} -c 'printf %s "${NETBSD_SHELL}"')" 132 result="$( ${TEST_SH} -c "${CMD}" 2>"${TEMP_FILE}" && printf X )" 222 atf_check -s exit:0 -e empty -o empty ${TEST_SH} -c ":" 227 atf_check -s not-exit:0 -e not-empty -o empty ${TEST_SH} -c \ 229 atf_check -s exit:0 -e empty -o inline:OK ${TEST_SH} -c \ 242 "${TEST_SH [all...] |
| H A D | t_exit.sh | 28 : ${TEST_SH:="/bin/sh"} 37 atf_check -o match:0 -e empty ${TEST_SH} -c 'true; true & echo $?' 39 atf_check -o match:0 -e empty ${TEST_SH} -c 'false; true & echo $?' 49 ${TEST_SH} -c ' 69 ${TEST_SH} -c 'true && ! true | false; echo $?' 79 ${TEST_SH} -c '( trap "echo exiting" EXIT; /usr/bin/true )' 90 atf_check -s exit:0 -o match:exiting -e empty ${TEST_SH} helper.sh 91 # test ksh by setting TEST_SH to /bin/ksh and run the entire set... 103 ${TEST_SH} helper.sh 104 # test ksh by setting TEST_SH t [all...] |
| H A D | t_wait.sh | 28 : ${TEST_SH:="/bin/sh"} 37 atf_check -s exit:0 -o empty -e empty ${TEST_SH} -c \ 40 atf_check -s exit:0 -o empty -e empty ${TEST_SH} -c \ 44 atf_check -s exit:0 -o empty -e empty ${TEST_SH} -c \ 47 atf_check -s exit:0 -o empty -e empty ${TEST_SH} -c \ 78 output=$(${TEST_SH} individualhelper.sh 2>&1) 90 if ! ${TEST_SH} -c 'sleep 1 & wait %1' 2>/dev/null 113 output=$(${TEST_SH} individualhelper.sh 2>&1) 137 output=$(${TEST_SH} individualhelper.sh 2>&1) 158 atf_check -s exit:127 -o empty -e ignore ${TEST_SH} [all...] |
| H A D | t_redir.sh | 28 : ${TEST_SH:="/bin/sh"} 34 # (though if all pass but the last, it might be a TEST_SH problem.) 45 atf_check -s exit:0 -o empty -e empty ${TEST_SH} || 49 atf_check -s exit:0 -o match:0 -e empty ${TEST_SH} -c 'wc -l' || 55 atf_check -s exit:0 -o match:hello -e empty ${TEST_SH} || 60 atf_check -s exit:0 -o match:1 -e empty ${TEST_SH} -c 'wc -l' || 67 atf_check -s exit:0 -o match:helloworld -e empty ${TEST_SH} || 73 atf_check -s exit:0 -o match:2 -e empty ${TEST_SH} -c 'wc -l' || 78 ${TEST_SH} -c 'cat File' 92 -o match:X=X -o match:'Y=\$4' -e empty ${TEST_SH} || [all...] |
| H A D | t_expand.sh | 28 : ${TEST_SH:="/bin/sh"} 56 ${TEST_SH} -c 'echo "" "" | '" sed 's,\$,EOL,'" 60 ${TEST_SH} -c 'set -- "" ""; echo "$@" | '" sed 's,\$,EOL,'" 62 atf_check -s exit:0 -o inline:'0\n' -e empty ${TEST_SH} -c \ 75 ${TEST_SH} -c 'set -- "a a" "b b"; printf %s\\n $@' 77 ${TEST_SH} -c 'set -- "a a" "b b"; printf %s\\n ${1+$@}' 79 ${TEST_SH} -c 'set -- "a a" "b b"; printf %s\\n "$@"' 81 ${TEST_SH} -c 'set -- "a a" "b b"; printf %s\\n ${1+"$@"}' 85 ${TEST_SH} -c 'set -- "a a" "b b"; printf %s\\n "${1+$@}"' 130 atf_check -s exit:0 -o inline:'\n' -e empty ${TEST_SH} [all...] |
| H A D | t_shift.sh | 28 : ${TEST_SH:="/bin/sh"} 65 ${TEST_SH} -c "set -- ${init}; shift $n;"' echo "$# $*"' 69 ${TEST_SH} -c \ 102 ${TEST_SH} -c "set -- ${init}; shift $n;"' echo "$# $*"' 148 -e ignore ${TEST_SH} -c \ 176 -e ignore ${TEST_SH} -c \ 217 atf_check -s not-exit:0 -o empty -e ignore ${TEST_SH} -c \ 219 atf_check -s not-exit:0 -o empty -e ignore ${TEST_SH} -c \ 235 atf_check -s not-exit:0 -o empty -e not-empty ${TEST_SH} -c \
|
| H A D | t_varquote.sh | 28 : ${TEST_SH:="/bin/sh"} 100 OUT=$( ${TEST_SH} script.sh 2>&1 ) 117 ${TEST_SH} -c 'echo "${foo:="first-word"} second-word"' 126 atf_check -s exit:0 -o empty -e empty ${TEST_SH} -c ': "${x=$((1))}"' 127 atf_check -s exit:0 -o match:1 -e empty ${TEST_SH} -c 'echo "${x=$((1))}"'
|
| H A D | t_option.sh | 28 : ${TEST_SH:="/bin/sh"} 55 atf_check -s exit:0 -o empty -e empty ${TEST_SH} -c \ 104 ${TEST_SH} -c "set -${opt}" 2>/dev/null && 125 atf_check -s exit:1 -o empty -e empty ${TEST_SH} -ce \ 129 atf_check -s exit:0 -o match:VAR=value -e empty ${TEST_SH} -ce \ 153 atf_check -s exit:0 -o empty -e empty ${TEST_SH} -c \ 163 atf_check -s exit:0 -o empty -e not-empty ${TEST_SH} -c \ 173 atf_check -s exit:0 -o empty -e empty ${TEST_SH} -c \ 183 atf_check -s not-exit:0 -o empty -e not-empty ${TEST_SH} -c \ 191 atf_check -s exit:0 -o empty -e empty ${TEST_SH} [all...] |
| H A D | t_varval.sh | 28 : ${TEST_SH:="/bin/sh"} 85 ${TEST_SH} || 90 ${TEST_SH} || 95 ${TEST_SH} || 100 ${TEST_SH} || 105 atf_check -s exit:0 -o empty -e empty ${TEST_SH} || 127 atf_check -s exit:0 -o save:results -e empty ${TEST_SH} || 145 atf_check -s exit:0 -o save:results -e empty ${TEST_SH} || 175 atf_check -s exit:0 -o empty -e empty ${TEST_SH} || 223 atf_check -s exit:0 -o empty -e empty ${TEST_SH} [all...] |
| H A D | t_input.sh | 28 : ${TEST_SH:="/bin/sh"} 78 ${TEST_SH} helper.sh 102 ${TEST_SH} "${OF}" 156 ${TEST_SH} "${OF}"
|
| H A D | t_set_e.sh | 33 : ${TEST_SH:="/bin/sh"} 45 #echo "$TEST_SH -c $1" 46 result=`$TEST_SH -c "$1" 2>/dev/null | tr '\n' ' ' | sed 's/ *$//'`
|
| H A D | t_here.sh | 28 : ${TEST_SH:="/bin/sh"} 51 result="$( ${TEST_SH} -c "${CMD}" 2>"${TEMP_FILE}" )" 547 atf_check -s exit:0 -o inline:'2\n2\n' -e empty ${TEST_SH} -c ' 566 atf_check -s exit:7 -o empty -e empty ${TEST_SH} -c ' 582 atf_check -s exit:0 -o inline:'xxx\n' -e empty ${TEST_SH} -c ' 588 atf_check -s exit:0 -o inline:'xxx\n' -e empty ${TEST_SH} -c ' 595 atf_check -s exit:0 -o inline:'xxx\n' -e empty ${TEST_SH} -c ' 618 atf_check -s exit:0 -o inline:'a\nb\n' -e empty ${TEST_SH} script 660 atf_check -s exit:0 -o ignore -e empty ${TEST_SH} script
|
| H A D | t_fsplit.sh | 40 : ${TEST_SH:="/bin/sh"} 59 result=$( ${TEST_SH} -c "unset x a b d c e f g h; $1" )
|
| H A D | t_patterns.sh | 28 : ${TEST_SH:=/bin/sh} 76 result="$( ${TEST_SH} -c "${CMD}" 2>"${TEMP_FILE}" )" 503 ${TEST_SH} -c 'case "^" in ([^V^]) exit 1;; (*) exit 0;; esac' && { 693 if X=$( ${TEST_SH} -c 'printf %s '"\$'\\\\'" 2>/dev/null ) && 696 # TEST_SH supports $'...' so we can test it as well
|
| /src/tests/usr.bin/printf/ |
| H A D | t_builtin.sh | 29 : ${TEST_SH:=/bin/sh} 31 # This tests the builtin printf command in ${TEST_SH} 46 # (any will do, caveat any bugs it might have, it need not be TEST_SH, 51 $Running_under_ATF && atf_require_prog "${TEST_SH%% *}" 83 ${TEST_SH} -c "${COMMAND}" 90 atf_skip "${TEST_SH%% *} does not have printf built in" 92 echo >&2 "No builtin printf in ${TEST_SH}" 102 if B=$( ${TEST_SH} -c 'type -t printf' 2>/dev/null ) 112 ${TEST_SH} -c 'type printf' 2>&1 )" in 124 MSG="${TEST_SH [all...] |
| H A D | printf.sh | 1513 # what matters if $TEST_SH is a NetBSD sh 1514 ${TEST_SH} -c 'test -n "$NETBSD_SHELL"' || { 1516 "- ${TEST_SH%% *} is not a (modern) NetBSD shell" 1525 "- ${TEST_SH%% *} is not a (modern enough) NetBSD shell" 1669 # what matters if $TEST_SH is a NetBSD sh 1670 ${TEST_SH} -c 'test -n "$NETBSD_SHELL"' || { 1672 "- ${TEST_SH%% *} is not a (modern) NetBSD shell"
|
| /src/tests/bin/sh/dotcmd/ |
| H A D | scoped_command | 33 : ${TEST_SH:=/bin/sh} 37 set -- ${TEST_SH} 45 /*) TEST_SH="$1${2+ }$2";; 46 ./*) TEST_SH="${PWD}${1#.}${2+ }$2";; 47 */*) TEST_SH="${PWD}/$1${2+ }$2";; 48 *) TEST_SH="$( command -v "$1" )${2+ }$2";; 76 echo "#!${TEST_SH}"
|
| H A D | Makefile | 10 .if !defined(TEST_SH) 11 TEST_SH = ${HOST_SH} macro 26 ${TEST_SH} ${.CURDIR}/scoped_command '${cmd_scope}' '${cmd}' '${cmd}' \ 38 ${TEST_SH} ${.CURDIR}/scoped_command '${dot_scope}' \
|
Completed in 18 milliseconds