#!/usr/bin/env python # ********************************************************************** # # Copyright (c) 2003-2015 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 = [] languages = [ "cpp", "java", "python", "ruby", "php", "js" ] if TestUtil.isWin32(): languages.append("csharp") if TestUtil.isDarwin(): languages.append("objective-c") for d in languages: 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)