You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2012/07/03 23:10:29 UTC
svn commit: r1356946 - /qpid/trunk/qpid/cpp/src/tests/ipv6_test
Author: astitcher
Date: Tue Jul 3 21:10:28 2012
New Revision: 1356946
URL: http://svn.apache.org/viewvc?rev=1356946&view=rev
Log:
NO-JIRA: Don't run the IPv6 test unless the machine has global IPv6 addresses
- The qpid code deliberately won't use IPv6 unless it has IPv6 configured
on the machine, if it's not fully there don't try to test it.
Modified:
qpid/trunk/qpid/cpp/src/tests/ipv6_test
Modified: qpid/trunk/qpid/cpp/src/tests/ipv6_test
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/tests/ipv6_test?rev=1356946&r1=1356945&r2=1356946&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/tests/ipv6_test (original)
+++ qpid/trunk/qpid/cpp/src/tests/ipv6_test Tue Jul 3 21:10:28 2012
@@ -19,6 +19,19 @@
# under the License.
#
+# Check whether we have any globally configured IPv6 addresses
+# - if not then we can't run the tests because ipv6 lookups won't
+# work within the qpid code. This is a deliberate feature to avoid
+# getting addresses that can't be routed by the machine.
+
+if ip -f inet6 -o addr | cut -f 9 -s -d' ' | grep global > /dev/null ; then
+ echo "IPv6 addresses configured continuing"
+else
+ echo "No global IPv6 addresses configured - skipping test"
+ exit 0
+fi
+
+
# Run a simple test over IPv6
source ./test_env.sh
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org