#!/usr/bin/env python # ********************************************************************** # # Copyright (c) 2003-2014 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, imp sys.path.append(os.path.join(os.path.dirname(__file__), "scripts")) import TestUtil testGroups = [] for d in [ "cpp", "java", "cs", "py", "rb", "php" ]: filename = os.path.abspath(os.path.join(os.path.dirname(__file__), d, "allTests.py")) f = open(filename, "r") current_mod = imp.load_module("allTests", f, filename, (".py", "r", imp.PY_SOURCE)) f.close() tests = [] tests = [ (os.path.join(d, "test", x), y) for x, y in current_mod.tests ] if len(tests) > 0: testGroups.extend(tests) TestUtil.run(testGroups, root=True)