summaryrefslogtreecommitdiff
path: root/py/test/Ice/custom/Client.py
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2006-08-24 23:00:10 +0000
committerMark Spruiell <mes@zeroc.com>2006-08-24 23:00:10 +0000
commitc8d6203027334c6ca01aa75bb799b52c4924b102 (patch)
treeed4c7e774d7a4d20573b1de660041115f952bb96 /py/test/Ice/custom/Client.py
parentbug 1316: auto_array (diff)
downloadice-c8d6203027334c6ca01aa75bb799b52c4924b102.tar.bz2
ice-c8d6203027334c6ca01aa75bb799b52c4924b102.tar.xz
ice-c8d6203027334c6ca01aa75bb799b52c4924b102.zip
bug 943: map sequence<byte> to string
Diffstat (limited to 'py/test/Ice/custom/Client.py')
-rw-r--r--py/test/Ice/custom/Client.py46
1 files changed, 46 insertions, 0 deletions
diff --git a/py/test/Ice/custom/Client.py b/py/test/Ice/custom/Client.py
new file mode 100644
index 00000000000..4831b78c28d
--- /dev/null
+++ b/py/test/Ice/custom/Client.py
@@ -0,0 +1,46 @@
+#!/usr/bin/env python
+# **********************************************************************
+#
+# Copyright (c) 2003-2006 ZeroC, Inc. All rights reserved.
+#
+# This copy of Ice is licensed to you under the terms described in the
+# ICE_LICENSE file included in this distribution.
+#
+# **********************************************************************
+
+import os, sys, traceback
+
+for toplevel in [".", "..", "../..", "../../..", "../../../.."]:
+ toplevel = os.path.normpath(toplevel)
+ if os.path.exists(os.path.join(toplevel, "python", "Ice.py")):
+ break
+else:
+ raise "can't find toplevel directory!"
+
+sys.path.insert(0, os.path.join(toplevel, "python"))
+sys.path.insert(0, os.path.join(toplevel, "lib"))
+
+import Ice
+Ice.loadSlice('Test.ice')
+import Test, AllTests
+
+def run(args, communicator):
+ custom = AllTests.allTests(communicator)
+ custom.shutdown()
+ return True
+
+try:
+ communicator = Ice.initialize(sys.argv)
+ status = run(sys.argv, communicator)
+except:
+ traceback.print_exc()
+ status = False
+
+if communicator:
+ try:
+ communicator.destroy()
+ except:
+ traceback.print_exc()
+ status = False
+
+sys.exit(not status)