summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2012-07-03 21:10:28 +0000
committerAndrew Stitcher <astitcher@apache.org>2012-07-03 21:10:28 +0000
commitb2609050eb5ed1ed6995b44a677e20bf8e93ca6c (patch)
tree4225fb60efc6b50d49397ba6ac7e3c5a78efaa8c /qpid/cpp/src/tests
parente2c7f5dd434bb2c2a1adf3f260c4e3860221bc96 (diff)
downloadqpid-python-b2609050eb5ed1ed6995b44a677e20bf8e93ca6c.tar.gz
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. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1356946 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests')
-rwxr-xr-xqpid/cpp/src/tests/ipv6_test13
1 files changed, 13 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/ipv6_test b/qpid/cpp/src/tests/ipv6_test
index 6becfd8c96..9d1cb2acdd 100755
--- a/qpid/cpp/src/tests/ipv6_test
+++ b/qpid/cpp/src/tests/ipv6_test
@@ -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