diff options
author | Anthony Neal <aneal@zeroc.com> | 2002-03-25 22:41:31 +0000 |
---|---|---|
committer | Anthony Neal <aneal@zeroc.com> | 2002-03-25 22:41:31 +0000 |
commit | 99528353dee44b173f35470f3920b6c7f9c7cb95 (patch) | |
tree | ecf9c1290c00e36dd24862be68c2044cb4d14850 /cpp/test/IceSSL/loadPEM/run.py | |
parent | project file fixes (diff) | |
download | ice-99528353dee44b173f35470f3920b6c7f9c7cb95.tar.bz2 ice-99528353dee44b173f35470f3920b6c7f9c7cb95.tar.xz ice-99528353dee44b173f35470f3920b6c7f9c7cb95.zip |
Updated to fit into the test framework.
Diffstat (limited to 'cpp/test/IceSSL/loadPEM/run.py')
-rwxr-xr-x | cpp/test/IceSSL/loadPEM/run.py | 9 |
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!" |