diff options
Diffstat (limited to 'cpp/test/IceSSL/certificateAndKeyParsing/run.py')
-rwxr-xr-x | cpp/test/IceSSL/certificateAndKeyParsing/run.py | 9 |
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!" |