summaryrefslogtreecommitdiff
path: root/cpp/test/IceSSL/configuration/run.py
diff options
context:
space:
mode:
authorAnthony Neal <aneal@zeroc.com>2002-03-21 18:40:50 +0000
committerAnthony Neal <aneal@zeroc.com>2002-03-21 18:40:50 +0000
commit741b061d7c459b39a4406bda640139b7585b52f6 (patch)
treede5e08397cc6132c8a6dd96b66a09aaef6b757a4 /cpp/test/IceSSL/configuration/run.py
parentGetting rid of old trash. (diff)
downloadice-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-xcpp/test/IceSSL/configuration/run.py36
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)