diff options
author | Anthony Neal <aneal@zeroc.com> | 2002-03-21 18:40:50 +0000 |
---|---|---|
committer | Anthony Neal <aneal@zeroc.com> | 2002-03-21 18:40:50 +0000 |
commit | 741b061d7c459b39a4406bda640139b7585b52f6 (patch) | |
tree | de5e08397cc6132c8a6dd96b66a09aaef6b757a4 /cpp/test/IceSSL/configuration/run.py | |
parent | Getting rid of old trash. (diff) | |
download | ice-741b061d7c459b39a4406bda640139b7585b52f6.tar.bz2 ice-741b061d7c459b39a4406bda640139b7585b52f6.tar.xz ice-741b061d7c459b39a4406bda640139b7585b52f6.zip |
Updated with a couple of minor bug fixes (ContextOpenSSL.cpp and
SystemOpenSSL.cpp) and the addition of the initial tests for IceSSL.
Diffstat (limited to 'cpp/test/IceSSL/configuration/run.py')
-rwxr-xr-x | cpp/test/IceSSL/configuration/run.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/cpp/test/IceSSL/configuration/run.py b/cpp/test/IceSSL/configuration/run.py new file mode 100755 index 00000000000..9063aa37ad5 --- /dev/null +++ b/cpp/test/IceSSL/configuration/run.py @@ -0,0 +1,36 @@ +#!/usr/bin/env python +# ********************************************************************** +# +# Copyright (c) 2001 +# MutableRealms, Inc. +# Huntsville, AL, USA +# +# All Rights Reserved +# +# ********************************************************************** + +import os, sys + +for toplevel in [".", "..", "../..", "../../..", "../../../.."]: + toplevel = os.path.normpath(toplevel) + if os.path.exists(os.path.join(toplevel, "config", "TestUtil.py")): + break +else: + raise "can't find toplevel directory!" + +sys.path.append(os.path.join(toplevel, "config")) +import TestUtil + +testdir = os.path.join(toplevel,"test", "IceSSL", "configuration") +client = os.path.join(testdir, "configuration") + +updatedOptions = TestUtil.clientServerOptions.replace("TOPLEVELDIR", toplevel) +print "starting configuration...", +clientPipe = os.popen(client + updatedOptions) +output = clientPipe.read().strip() +if not output: + print "failed!" + sys.exit(1) +print "ok" +print output +sys.exit(0) |