summaryrefslogtreecommitdiff
path: root/allTests.py
diff options
context:
space:
mode:
authorBrent Eagles <brent@zeroc.com>2007-11-09 16:52:50 -0330
committerBrent Eagles <brent@zeroc.com>2007-11-09 16:52:50 -0330
commitae9051ebad038def297b75ded66dec340934e72f (patch)
treef91ff30663418273180d0efffd1badb620f05733 /allTests.py
parent- Fix slicedir macro so it will work if you are using ICE_HOME in a (diff)
downloadice-ae9051ebad038def297b75ded66dec340934e72f.tar.bz2
ice-ae9051ebad038def297b75ded66dec340934e72f.tar.xz
ice-ae9051ebad038def297b75ded66dec340934e72f.zip
- Added a first crack at a root allTests.py file.
- Consolidated basic command line processing to TestUtil.py
Diffstat (limited to 'allTests.py')
-rw-r--r--allTests.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/allTests.py b/allTests.py
new file mode 100644
index 00000000000..89ef1e541d6
--- /dev/null
+++ b/allTests.py
@@ -0,0 +1,29 @@
+#!/usr/bin/env python
+# **********************************************************************
+#
+# Copyright (c) 2003-2007 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__), "config"))
+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 = file(filename, "r")
+ current_mod = imp.load_module("allTests", f, filename, (".py", "r", imp.PY_SOURCE))
+ f.close()
+
+ tests = TestUtil.getTestSet([ os.path.join(d, "test", x) for x in current_mod.tests ])
+ if len(tests) > 0:
+ testGroups.extend(tests)
+
+TestUtil.rootRun(testGroups)