forked from zeroc-ice/icee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathallTests.py
executable file
·31 lines (23 loc) · 916 Bytes
/
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
#!/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 = []
for d in [ "cpp", "python"]:
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)