ICE 3.4.2
[php5-ice-freebsdport.git] / py / test / Ice / custom / Client.py
blobcc978a3d79b5043f652b8e5f3cd6c975d85d0933
1 #!/usr/bin/env python
2 # **********************************************************************
4 # Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
6 # This copy of Ice is licensed to you under the terms described in the
7 # ICE_LICENSE file included in this distribution.
9 # **********************************************************************
11 import os, sys, traceback
13 import Ice
14 Ice.loadSlice('Test.ice')
15 import Test, AllTests
17 def run(args, communicator):
18 custom = AllTests.allTests(communicator)
19 custom.shutdown()
20 return True
22 try:
23 communicator = Ice.initialize(sys.argv)
24 status = run(sys.argv, communicator)
25 except:
26 traceback.print_exc()
27 status = False
29 if communicator:
30 try:
31 communicator.destroy()
32 except:
33 traceback.print_exc()
34 status = False
36 sys.exit(not status)