diff options
author | Michi Henning <michi@zeroc.com> | 2004-07-13 03:42:12 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2004-07-13 03:42:12 +0000 |
commit | 98ca2a135b1165f1eb75ea794e5e60d77a0872dc (patch) | |
tree | 5ac4f6fe9e258d4ad7fe9f24181b000ca764c8fe /cs/test/Ice/slicing/exceptions/run.py | |
parent | Added work-around for broken Mono DefaultInvariant comparer. (diff) | |
download | ice-98ca2a135b1165f1eb75ea794e5e60d77a0872dc.tar.bz2 ice-98ca2a135b1165f1eb75ea794e5e60d77a0872dc.tar.xz ice-98ca2a135b1165f1eb75ea794e5e60d77a0872dc.zip |
Changed test suite to work with Mono.
Diffstat (limited to 'cs/test/Ice/slicing/exceptions/run.py')
-rwxr-xr-x | cs/test/Ice/slicing/exceptions/run.py | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/cs/test/Ice/slicing/exceptions/run.py b/cs/test/Ice/slicing/exceptions/run.py index d3ba673ed15..7db7cda2e11 100755 --- a/cs/test/Ice/slicing/exceptions/run.py +++ b/cs/test/Ice/slicing/exceptions/run.py @@ -8,7 +8,7 @@ # # ********************************************************************** -import os, sys +import os, sys, getopt for toplevel in [".", "..", "../..", "../../..", "../../../.."]: toplevel = os.path.normpath(toplevel) @@ -20,10 +20,27 @@ else: sys.path.append(os.path.join(toplevel, "config")) import TestUtil +def usage(): + print "usage: " + sys.argv[0] + " [-m]" + sys.exit(2) + +try: + opts, args = getopt.getopt(sys.argv[1:], "m") +except getopt.GetoptError: + usage() + +mono = 0 +for o, a in opts: + if o == "-m": + mono = 1 + +if not TestUtil.isWin32(): + mono = 1 + name = os.path.join("Ice", "slicing", "exceptions") print "tests with regular server." -TestUtil.clientServerTest(name) +TestUtil.clientServerTest(mono, name) print "tests with AMD server." -TestUtil.clientServerTestWithOptionsAndNames(name, "", "", "serveramd", "client") +TestUtil.clientServerTestWithOptionsAndNames(mono, name, "", "", "serveramd", "client") sys.exit(0) |