summaryrefslogtreecommitdiff
path: root/java/config/TestUtil.py
diff options
context:
space:
mode:
Diffstat (limited to 'java/config/TestUtil.py')
-rw-r--r--java/config/TestUtil.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/java/config/TestUtil.py b/java/config/TestUtil.py
index ba7c12ad2f8..bbf9d73a400 100644
--- a/java/config/TestUtil.py
+++ b/java/config/TestUtil.py
@@ -9,6 +9,14 @@
# **********************************************************************
#
+# Set compressed to 1 in case you want to run the tests with
+# protocol compression.
+#
+
+compress = 0
+#compress = 1
+
+#
# If you don't set "host" below, then the Ice library will try to find
# out the IP address of this host. For the Ice test suite, it's best
# to set the IP address explicitly to 127.0.0.1. This avoid problems
@@ -138,6 +146,11 @@ clientProtocol = ""
serverProtocol = ""
clientServerProtocol = ""
+if compress:
+ clientProtocol += " --Ice.Override.Compress"
+ serverProtocol += " --Ice.Override.Compress"
+ clientServerProtocol += " --Ice.Override.Compress"
+
if host != "":
defaultHost = " --Ice.Default.Host=" + host
else: