forked from zeroc-ice/ice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
allTests.py
executable file
·37 lines (28 loc) · 1.09 KB
/
allTests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python
# **********************************************************************
#
# Copyright (c) 2003-2016 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", "java-compat", "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", os.path.normpath(x)), y) for x, y in current_mod.tests ]
if len(tests) > 0:
testGroups.extend(tests)
TestUtil.run(testGroups, root=True)