diff options
author | Brent Eagles <brent@zeroc.com> | 2007-11-07 14:59:34 -0330 |
---|---|---|
committer | Brent Eagles <brent@zeroc.com> | 2007-11-07 14:59:34 -0330 |
commit | 676286717393ad5a1dfecac80022ce85cd503711 (patch) | |
tree | fbf5f846218fcac6de115bea01fe1572d309d0c2 /cpp/allTests.py | |
parent | - Fixing bug 2522 for Python. This involved adding the C++ class (diff) | |
download | ice-676286717393ad5a1dfecac80022ce85cd503711.tar.bz2 ice-676286717393ad5a1dfecac80022ce85cd503711.tar.xz ice-676286717393ad5a1dfecac80022ce85cd503711.zip |
- Moved cpp/slice to slice
- Merged all TestUtil.py modules to config/TestUtil.py
- Moved all certs to config/certs
- Updated test scripts to refer to new TestUtil.py module and use new
interfaces
- Updated build systems to refer to new slice location
- Moved cpp/install to distribution
- Moved and merged all IceGridAdmin.py modules to config.
- Modified build system to deal with new build logic. That is there are
3 basic ways to find the slice translators and runtime: ICE_HOME, an
RPM install and the source distribution. Automatically detecting Ice
in a default install location is now problematic and no longer done.
Diffstat (limited to 'cpp/allTests.py')
-rwxr-xr-x | cpp/allTests.py | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/cpp/allTests.py b/cpp/allTests.py index e031e90c3ab..818c5a98ed0 100755 --- a/cpp/allTests.py +++ b/cpp/allTests.py @@ -11,28 +11,14 @@ import os, sys, re, getopt for toplevel in [".", "..", "../..", "../../..", "../../../.."]: - toplevel = os.path.normpath(toplevel) + toplevel = os.path.abspath(toplevel) if os.path.exists(os.path.join(toplevel, "config", "TestUtil.py")): break else: raise "can't find toplevel directory!" -def isCygwin(): - - # The substring on sys.platform is required because some cygwin - # versions return variations like "cygwin_nt-4.01". - return sys.platform[:6] == "cygwin" - -def isWin32(): - - return sys.platform == "win32" or isCygwin() - -def isWin9x(): - - if isWin32(): - return not (os.environ.has_key("OS") and os.environ["OS"] == "Windows_NT") - else: - return 0 +sys.path.append(os.path.join(toplevel, "config")) +import TestUtil def runTests(args, tests, num = 0): # @@ -41,7 +27,7 @@ def runTests(args, tests, num = 0): for i in tests: i = os.path.normpath(i) - dir = os.path.join(toplevel, "test", i) + dir = os.path.join(toplevel, TestUtil.getDefaultMapping(), "test", i) print if num > 0: @@ -49,7 +35,7 @@ def runTests(args, tests, num = 0): print "*** running tests in " + dir, print - if isWin9x(): + if TestUtil.isWin9x(): status = os.system("python " + os.path.join(dir, "run.py " + args)) else: status = os.system(os.path.join(dir, "run.py " + args)) @@ -125,11 +111,11 @@ tests = [ # # These tests are currently disabled on cygwin # -if isCygwin() == 0: +if TestUtil.isCygwin() == 0: tests += [ ] -if isWin32(): +if TestUtil.isWin32(): tests.insert(0, "IceUtil/condvar") def usage(): |