mirror of
https://repo.or.cz/socat.git
synced 2025-07-13 15:13:23 +00:00
Corrected lots of misspellings etc.
This commit is contained in:
parent
d9d06eb587
commit
52e2e5a277
36 changed files with 108 additions and 1896 deletions
37
test.sh
37
test.sh
|
@ -616,7 +616,7 @@ TF="$TD/socat-q"
|
|||
IFS="$($ECHO ' \n\t')"
|
||||
if ! $SOCAT -hhh >/dev/null; then
|
||||
echo "Failed: $SOCAT -hhh" >&2
|
||||
exit -1
|
||||
exit 2
|
||||
fi
|
||||
$SOCAT -hhh |sed -n '/^ address-head:/,/^ opts:/ p' |grep -v -e "^ address-head:" -e "^ opts:" |sed -e 's/^[[:space:]]*//' -e 's/[: ].*//' |grep -v '^<' >"$TF"
|
||||
$SOCAT -hhh |sed -n '/^ address-head:/,/^ opts:/ p' |grep -v -e "^ address-head:" -e "^ opts:" |sed -e 's/^[[:space:]]*//' -e 's/[: ].*//' |grep -v '^<' |LC_ALL=C sort |diff "$TF" - >"$TF-diff"
|
||||
|
@ -912,7 +912,7 @@ childprocess () {
|
|||
local l
|
||||
case "$1" in
|
||||
[1-9]*) ;;
|
||||
*) echo "childprocess \"$1\": not a number" >&2; exit -1 ;;
|
||||
*) echo "childprocess \"$1\": not a number" >&2; exit 2 ;;
|
||||
esac
|
||||
case "$UNAME" in
|
||||
AIX) l="$(ps -fade |grep "^........ ...... $(printf %6u $1)")" ;;
|
||||
|
@ -939,7 +939,7 @@ childpids () {
|
|||
if [ "X$1" = "X-r" ]; then recursive=1; shift; fi
|
||||
case "$1" in
|
||||
[1-9]*) ;;
|
||||
*) echo "childpids \"$1\": not a number" >&2; exit -1 ;;
|
||||
*) echo "childpids \"$1\": not a number" >&2; exit 2 ;;
|
||||
esac
|
||||
case "$UNAME" in
|
||||
AIX) l="$(ps -fade |grep "^........ ...... $(printf %6u $1)" |awk '{print($2);}')" ;;
|
||||
|
@ -2177,7 +2177,7 @@ N=$((N+1))
|
|||
NAME=DUALSTDIO
|
||||
case "$TESTS" in
|
||||
*%$N%*|*%functions%*|*%stdio%*|*%$NAME%*)
|
||||
TEST="$NAME: splitted form of stdio ('stdin!!stdout') with simple echo via internal pipe"
|
||||
TEST="$NAME: split form of stdio ('stdin!!stdout') with simple echo via internal pipe"
|
||||
testecho "$N" "$NAME" "$TEST" "stdin!!stdout" "pipe" "$opts"
|
||||
esac
|
||||
N=$((N+1))
|
||||
|
@ -2186,7 +2186,7 @@ N=$((N+1))
|
|||
NAME=DUALSHORTSTDIO
|
||||
case "$TESTS" in
|
||||
*%$N%*|*%functions%*|*%stdio%*|*%$NAME%*)
|
||||
TEST="$NAME: short splitted form of stdio ('-!!-') with simple echo via internal pipe"
|
||||
TEST="$NAME: short split form of stdio ('-!!-') with simple echo via internal pipe"
|
||||
testecho "$N" "$NAME" "$TEST" "-!!-" "pipe" "$opts"
|
||||
esac
|
||||
N=$((N+1))
|
||||
|
@ -9292,7 +9292,7 @@ N=$((N+1))
|
|||
|
||||
|
||||
# test: there is a bug with the readbytes option: when the socket delivered
|
||||
# exacly that many bytes as specified with readbytes and the stays idle (no
|
||||
# exactly that many bytes as specified with readbytes and the stays idle (no
|
||||
# more data, no EOF), socat waits for more data instead of generating EOF on
|
||||
# this in put stream.
|
||||
NAME=READBYTES_EOF
|
||||
|
@ -9336,7 +9336,7 @@ N=$((N+1))
|
|||
NAME=EXECPTYKILL
|
||||
case "$TESTS" in
|
||||
*%$N%*|*%functions%*|*%bugs%*|*%exec%*|*%pty%*|*%listen%*|*%unix%*|*%fork%*|*%$NAME%*)
|
||||
TEST="$NAME: exec:...,pty explicitely kills sub process"
|
||||
TEST="$NAME: exec:...,pty explicitly kills sub process"
|
||||
# we want to check if the exec'd sub process is killed in time
|
||||
# for this we have a shell script that generates a file after two seconds;
|
||||
# it should be killed after one second, so if the file was generated the test
|
||||
|
@ -11817,7 +11817,9 @@ N=$((N+1))
|
|||
|
||||
|
||||
if false; then # this overflow is not reliably reproducable
|
||||
# socat up to 2.0.0-b6 did not check the length of the PROXY-CONNECT command line paramters when copying them into the HTTP request buffer. This could lead to a buffer overflow.
|
||||
# Socat up to 2.0.0-b6 did not check the length of the PROXY-CONNECT command
|
||||
# line parameters when copying them into the HTTP request buffer. This could
|
||||
# lead to a buffer overflow.
|
||||
NAME=PROXY_ADDR_OVFL
|
||||
case "$TESTS" in
|
||||
*%$N%*|*%functions%*|*%bugs%*|*%security%*|*%socket%*|*%listen%*|*%$NAME%*)
|
||||
|
@ -12475,7 +12477,7 @@ case "$TESTS" in
|
|||
TEST="$NAME: SYSTEM address does not shutdown its parents addresses"
|
||||
# start an OpenSSL echo server using SYSTEM:cat
|
||||
# start an OpenSSL client that sends data
|
||||
# when the client recieves its data and terminates without error the test succeeded
|
||||
# when the client receives its data and terminates without error the test succeeded
|
||||
# in case of the bug the client issues an error like:
|
||||
# SSL_connect(): error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac
|
||||
if ! eval $NUMCOND; then :;
|
||||
|
@ -13139,7 +13141,7 @@ NAME=DIAG_FDIN
|
|||
case "$TESTS" in
|
||||
*%$N%*|*%functions%*|*%bugs%*|*%exec%*|*%$NAME%*)
|
||||
TEST="$NAME: test use of fdin=3"
|
||||
# Use FD 3 explicitely with fdin and test if Socat passes data to executed
|
||||
# Use FD 3 explicitly with fdin and test if Socat passes data to executed
|
||||
# program
|
||||
if ! eval $NUMCOND; then :; else
|
||||
tf="$td/test$N.stdout"
|
||||
|
@ -13449,7 +13451,9 @@ if [ $rc -ne 0 ] && grep -q "Invalid argument" "$te" && [ $UNAME = Linux ]; then
|
|||
echo "$CMD" >&2
|
||||
cat "$te" >&2
|
||||
failed ;;
|
||||
*) $PRINTF "${YELLOW}inable file system${NORMAL}\n"
|
||||
*) $PRINTF "${YELLOW}unsupported file system${NORMAL}\n"
|
||||
if [ "$VERBOSE" ]; then echo "$CMD"; fi
|
||||
if [ "$DEBUG" ]; then cat "${te}" >&2; fi
|
||||
cant ;;
|
||||
esac
|
||||
elif [ $rc -ne 0 ]; then
|
||||
|
@ -15133,7 +15137,7 @@ elif [ $rc1 -eq 139 ]; then
|
|||
cat "${te}" >&2
|
||||
failed
|
||||
else
|
||||
# soemthing unexpected happened
|
||||
# Something unexpected happened
|
||||
$PRINTF "$CANT\n"
|
||||
echo "$CMD"
|
||||
cat "${te}" >&2
|
||||
|
@ -16755,7 +16759,7 @@ esac
|
|||
N=$((N+1))
|
||||
|
||||
|
||||
# Test the POSIX MQ feature with continuous READ and priorization on Linux
|
||||
# Test the POSIX MQ feature with continuous READ and prioritization on Linux
|
||||
NAME=POSIXMQ_READ_PRIO
|
||||
case "$TESTS" in
|
||||
*%$N%*|*%functions%*|*%socket%*|*%posixmq%*|*%$NAME%*)
|
||||
|
@ -17038,7 +17042,6 @@ fi # NUMCOND
|
|||
;;
|
||||
esac
|
||||
N=$((N+1))
|
||||
date "+%Y/%m/%d %H:%M:%S.%N"
|
||||
|
||||
|
||||
# Test the sigint option with SHELL address
|
||||
|
@ -17650,7 +17653,7 @@ CMD0="$TRACE $SOCAT $opts -lp server $SRV:${ts}0,fork PIPE"
|
|||
# The following command is the solution: option unix-bind-tempname generates
|
||||
# random names (like tempnam(2)) for binding the datagram client socket;
|
||||
# creating the XXXXXX file makes sure that the (non abstract) clients cannot
|
||||
# erronously bind there (part of the test)
|
||||
# erroneously bind there (part of the test)
|
||||
CMD1="$TRACE $SOCAT $opts -lp bind-tempname TCP4-LISTEN:$PORT,reuseaddr,fork $CLI:${ts}0,bind=${ts}1"
|
||||
touch ${ts}1.XXXXXX; CMD1="$TRACE $SOCAT $opts -lp tempname TCP4-LISTEN:$PORT,reuseaddr,fork $CLI:${ts}0,bind-tempname=${ts}1.XXXXXX"
|
||||
CMD2="$TRACE $SOCAT $opts -lp client - TCP4-CONNECT:$LOCALHOST:$PORT"
|
||||
|
@ -20085,9 +20088,9 @@ PROXY tcp CONNECT 127.0.0.1:80 proxyport=\$PORT,crlf TCP-L crlf
|
|||
|
||||
##################################################################################
|
||||
#=================================================================================
|
||||
# here come tests that might affect your systems integrity. Put normal tests
|
||||
# Here come tests that might affect your systems integrity. Put normal tests
|
||||
# before this paragraph.
|
||||
# tests must be explicitely selected by roottough or name (not number)
|
||||
# Tests must be explicitly selected by roottough or name (not number)
|
||||
|
||||
NAME=PTYGROUPLATE
|
||||
case "$TESTS" in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue