summaryrefslogtreecommitdiff
path: root/cpp/test/IceSSL/loadPEM/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/IceSSL/loadPEM/run.py')
-rwxr-xr-xcpp/test/IceSSL/loadPEM/run.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/test/IceSSL/loadPEM/run.py b/cpp/test/IceSSL/loadPEM/run.py
index 4bfe2a27bb3..08c09599052 100755
--- a/cpp/test/IceSSL/loadPEM/run.py
+++ b/cpp/test/IceSSL/loadPEM/run.py
@@ -21,12 +21,19 @@ else:
sys.path.append(os.path.join(toplevel, "config"))
import TestUtil
+if TestUtil.protocol != "ssl":
+ print "This test may only be run with SSL enabled."
+ sys.exit(0)
+
+testOptions = " --Ice.SSL.Client.CertPath=TOPLEVELDIR/test/IceSSL/certs"
+
testdir = os.path.join(toplevel,"test", "IceSSL", "loadPEM")
client = os.path.join(testdir, "loadPEM")
updatedOptions = TestUtil.clientServerOptions.replace("TOPLEVELDIR", toplevel)
+testOptions = testOptions.replace("TOPLEVELDIR", toplevel)
print "starting loadPEM...",
-clientPipe = os.popen(client + updatedOptions)
+clientPipe = os.popen(client + updatedOptions + testOptions)
output = clientPipe.read().strip()
if not output:
print "failed!"