svp / rpms / socat

Forked from rpms/socat 4 years ago
Clone

Blame SOURCES/socat-1.7.3.1-test.patch

240106
diff -ruN socat-1.7.3.1.orig/test.sh socat-1.7.3.1/test.sh
240106
--- socat-1.7.3.1.orig/test.sh	2016-01-29 12:29:28.000000000 +0200
240106
+++ socat-1.7.3.1/test.sh	2016-11-30 23:19:39.274775815 +0200
240106
@@ -3848,11 +3848,13 @@
240106
 if [ "$MYPID" = "$MYPPID" -o "$MYPID" = "$MYPGID" -o "$MYPID" = "$MYSID" -o \
240106
      "$MYPPID" = "$MYPGID" -o "$MYPPID" = "$MYSID" -o "$MYPGID" = "$MYSID" ];
240106
 then
240106
-    $PRINTF "$FAILED:\n"
240106
-    echo "$CMD"
240106
-    cat "$te"
240106
-    numFAIL=$((numFAIL+1))
240106
-    listFAIL="$listFAIL $N"
240106
+    $PRINTF "test $F_n $TEST... ${YELLOW}skipped - fails in mock ${NORMAL}\n" $N
240106
+    numCANT=$((numCANT+1))
240106
+    #$PRINTF "$FAILED:\n"
240106
+    #echo "$CMD"
240106
+    #cat "$te"
240106
+    #numFAIL=$((numFAIL+1))
240106
+    #listFAIL="$listFAIL $N"
240106
 else
240106
     $PRINTF "$OK\n"
240106
    numOK=$((numOK+1))
240106
@@ -4352,7 +4354,11 @@
240106
 elif ! testaddrs listen tcp ip4 >/dev/null || ! runsip4 >/dev/null; then
240106
     $PRINTF "test $F_n $TEST... ${YELLOW}TCP/IPv4 not available${NORMAL}\n" $N
240106
     numCANT=$((numCANT+1))
240106
+elif test -n "not-empty"; then
240106
+    $PRINTF "test $F_n $TEST... ${YELLOW}TCP/IPv4 external network test skipped${NORMAL}\n" $N
240106
+    numCANT=$((numCANT+1))
240106
 else
240106
+# never called
240106
 tf="$td/test$N.stdout"
240106
 te="$td/test$N.stderr"
240106
 tdiff="$td/test$N.diff"
240106
@@ -4397,7 +4403,11 @@
240106
 elif ! testaddrs listen tcp ip6 >/dev/null || ! runsip6 >/dev/null; then
240106
     $PRINTF "test $F_n $TEST... ${YELLOW}TCP/IPv6 not available${NORMAL}\n" $N
240106
     numCANT=$((numCANT+1))
240106
+elif test -n "not-empty"; then
240106
+    $PRINTF "test $F_n $TEST... ${YELLOW}TCP/IPv4 external network test skipped${NORMAL}\n" $N
240106
+    numCANT=$((numCANT+1))
240106
 else
240106
+# never called
240106
 tf="$td/test$N.stdout"
240106
 te="$td/test$N.stderr"
240106
 tdiff="$td/test$N.diff"
240106
@@ -4437,6 +4447,9 @@
240106
 *%$N%*|*%functions%*|*%socks%*|*%socks4a%*|*%tcp%*|*%tcp4%*|*%ip4%*|*%$NAME%*)
240106
 TEST="$NAME: socks4a connect over TCP/IPv4"
240106
 if ! eval $NUMCOND; then :;
240106
+elif test -n "not-empty"; then
240106
+    $PRINTF "test $F_n $TEST... ${YELLOW}SOCKS4A skipped - unreliable in mock ${NORMAL}\n" $N
240106
+    numCANT=$((numCANT+1))
240106
 elif ! testaddrs socks4a >/dev/null; then
240106
     $PRINTF "test $F_n $TEST... ${YELLOW}SOCKS4A not available${NORMAL}\n" $N
240106
     numCANT=$((numCANT+1))
240106
@@ -4482,6 +4495,9 @@
240106
 *%$N%*|*%functions%*|*%socks%*|*%socks4a%*|*%tcp%*|*%tcp6%*|*%ip6%*|*%$NAME%*)
240106
 TEST="$NAME: socks4a connect over TCP/IPv6"
240106
 if ! eval $NUMCOND; then :;
240106
+elif test -n "not-empty"; then
240106
+    $PRINTF "test $F_n $TEST... ${YELLOW}SOCKS4A skipped - unreliable in mock ${NORMAL}\n" $N
240106
+    numCANT=$((numCANT+1))
240106
 elif ! testaddrs socks4a >/dev/null; then
240106
     $PRINTF "test $F_n $TEST... ${YELLOW}SOCKS4A not available${NORMAL}\n" $N
240106
     numCANT=$((numCANT+1))
240106
@@ -9892,6 +9908,9 @@
240106
 # outside code then checks if the environment contains the variables correctly
240106
 # describing the peer and local sockets.
240106
 if ! eval $NUMCOND; then :;
240106
+elif test -n "not-empty"; then
240106
+    $PRINTF "test $F_n $TEST... ${YELLOW}$(echo "$feat" |tr a-z A-Z) too unreliable${NORMAL}\n" $N
240106
+    numCANT=$((numCANT+1))
240106
 elif ! feat=$(testaddrs $FEAT); then
240106
     $PRINTF "test $F_n $TEST... ${YELLOW}$(echo "$feat" |tr a-z A-Z) not available${NORMAL}\n" $N
240106
     numCANT=$((numCANT+1))