1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-29 05:32:59 +00:00

Port to Openindiana

This commit is contained in:
Gerhard Rieger 2015-01-19 21:48:35 +01:00
parent 81c4892599
commit f0c3b1f387
7 changed files with 99 additions and 11 deletions

16
test.sh
View file

@ -3768,7 +3768,9 @@ da="test$N $(date) $RANDOM"
CMD="$TRACE $SOCAT -u $opts - open:$ff,append,o-trunc"
printf "test $F_n $TEST... " $N
rm -f $ff; $ECHO "prefix-\c" >$ff
if ! echo "$da" |$CMD >$tf 2>"$te" ||
echo "$da" |$CMD >$tf 2>"$te"
rc0=$?
if ! [ $rc0 = 0 ] ||
! echo "$da" |diff - $ff >"$tdiff"; then
$PRINTF "$FAILED: $TRACE $SOCAT:\n"
echo "$CMD"
@ -9805,21 +9807,21 @@ if [ "$rc1" -ne 0 ]; then
numCANT=$((numCANT+1))
elif ! grep "ancillary message: $SCM_TYPE: $SCM_NAME=" ${te}0 >/dev/null; then
$PRINTF "$FAILED\n"
echo "variable $SCM_TYPE: $SCM_NAME not set"
echo "$CMD0 &"
echo "$CMD1"
grep " $LEVELS " "${te}0"
grep " $LEVELS " "${te}1"
echo "variable $SCM_TYPE: $SCM_NAME not set"
numFAIL=$((numFAIL+1))
listFAIL="$listFAIL $N"
elif ! grep "ancillary message: $SCM_TYPE: $SCM_NAME=$SCM_VALUE" ${te}0 >/dev/null; then
$PRINTF "$FAILED\n"
badval="$(grep "ancillary message: $SCM_TYPE: $SCM_NAME" ${te}0 |sed 's/.*=//g')"
echo "variable $SCM_TYPE: $SCM_NAME has value \"$badval\" instead of pattern \"$SCM_VALUE\"" >&2
echo "$CMD0 &"
echo "$CMD1"
grep " $LEVELS " "${te}0"
grep " $LEVELS " "${te}1"
badval="$(grep "ancillary message: $SCM_TYPE: $SCM_NAME" ${te}0 |sed 's/.*=//g')"
echo "variable $SCM_TYPE: $SCM_NAME has value \"$badval\" instead of pattern \"$SCM_VALUE\""
numFAIL=$((numFAIL+1))
listFAIL="$listFAIL $N"
else
@ -12085,16 +12087,16 @@ sleep 1
kill $pid0 2>/dev/null; wait
if [ ! -f "$t0rc" ]; then
$PRINTF "$FAILED\n"
echo "no return code of CMD0 stored" >&2
echo "$CMD0 &"
cat "${te}0"
echo "did not terminate with error"
numFAIL=$((numFAIL+1))
listFAIL="$listFAIL $N"
elif ! echo 1 |diff - "$t0rc"; then
elif ! echo 1 |diff - "$t0rc" >"$tdiff"; then
$PRINTF "$FAILED\n"
echo "CMD0 exited with $(cat $t0rc), expected 1"
echo "$CMD0 &"
cat "${te}0"
echo "expected return code 1"
numFAIL=$((numFAIL+1))
listFAIL="$listFAIL $N"
else