ICE 3.4.2
[php5-ice-freebsdport.git] / allTests.py
blob8025596a576c7a5a373afba72ab6b0ed7c8b84fb
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, imp
13 sys.path.append(os.path.join(os.path.dirname(__file__)))
14 from scripts import *
16 testGroups = []
18 for d in [ "cpp", "java", "cs", "py", "rb", "php" ]:
20 filename = os.path.abspath(os.path.join(os.path.dirname(__file__), d, "allTests.py"))
21 f = file(filename, "r")
22 current_mod = imp.load_module("allTests", f, filename, (".py", "r", imp.PY_SOURCE))
23 f.close()
25 tests = []
27 tests = [ (os.path.join(d, "test", x), y) for x, y in current_mod.tests ]
28 if len(tests) > 0:
29 testGroups.extend(tests)
31 TestUtil.run(testGroups, root=True)