ICE 3.4.2
[php5-ice-freebsdport.git] / cs / test / Ice / proxy / run.py
blobc9862180d692bbb042682e52875e7e02738b9bef
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
13 path = [ ".", "..", "../..", "../../..", "../../../.." ]
14 head = os.path.dirname(sys.argv[0])
15 if len(head) > 0:
16 path = [os.path.join(head, p) for p in path]
17 path = [os.path.abspath(p) for p in path if os.path.exists(os.path.join(p, "scripts", "TestUtil.py")) ]
18 if len(path) == 0:
19 raise "can't find toplevel directory!"
20 sys.path.append(os.path.join(path[0]))
21 from scripts import *
23 print "tests with regular server."
24 TestUtil.clientServerTest()
25 print "tests with AMD server."
26 TestUtil.clientServerTest(server="serveramd")
27 print "tests with collocated server."
28 TestUtil.collocatedTest()