summaryrefslogtreecommitdiff
path: root/cpp/test/IceSSL/certificateAndKeyParsing/run.py
diff options
context:
space:
mode:
authorAnthony Neal <aneal@zeroc.com>2002-03-25 22:41:31 +0000
committerAnthony Neal <aneal@zeroc.com>2002-03-25 22:41:31 +0000
commit99528353dee44b173f35470f3920b6c7f9c7cb95 (patch)
treeecf9c1290c00e36dd24862be68c2044cb4d14850 /cpp/test/IceSSL/certificateAndKeyParsing/run.py
parentproject file fixes (diff)
downloadice-99528353dee44b173f35470f3920b6c7f9c7cb95.tar.bz2
ice-99528353dee44b173f35470f3920b6c7f9c7cb95.tar.xz
ice-99528353dee44b173f35470f3920b6c7f9c7cb95.zip
Updated to fit into the test framework.
Diffstat (limited to 'cpp/test/IceSSL/certificateAndKeyParsing/run.py')
-rwxr-xr-xcpp/test/IceSSL/certificateAndKeyParsing/run.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/test/IceSSL/certificateAndKeyParsing/run.py b/cpp/test/IceSSL/certificateAndKeyParsing/run.py
index 8d539d2c092..5bbdaaa3014 100755
--- a/cpp/test/IceSSL/certificateAndKeyParsing/run.py
+++ b/cpp/test/IceSSL/certificateAndKeyParsing/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.Test.Client.CertPath=TOPLEVELDIR/test/IceSSL/certs"
+
testdir = os.path.join(toplevel,"test", "IceSSL", "certificateAndKeyParsing")
client = os.path.join(testdir, "certificateAndKeyParsing")
updatedOptions = TestUtil.clientServerOptions.replace("TOPLEVELDIR", toplevel)
+testOptions = testOptions.replace("TOPLEVELDIR", toplevel)
print "starting certificateAndKeyParsing...",
-clientPipe = os.popen(client + updatedOptions)
+clientPipe = os.popen(client + updatedOptions + testOptions)
output = clientPipe.read().strip()
if not output:
print "failed!"