diff options
Diffstat (limited to 'cs/test/Ice/inheritance/run.py')
-rwxr-xr-x | cs/test/Ice/inheritance/run.py | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/cs/test/Ice/inheritance/run.py b/cs/test/Ice/inheritance/run.py index 9e134d09e8a..ebd7da9727f 100755 --- a/cs/test/Ice/inheritance/run.py +++ b/cs/test/Ice/inheritance/run.py @@ -8,7 +8,7 @@ # # ********************************************************************** -import os, sys +import os, sys, getopt for toplevel in [".", "..", "../..", "../../..", "../../../.."]: toplevel = os.path.normpath(toplevel) @@ -20,8 +20,25 @@ 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", "inheritance") -TestUtil.clientServerTest(name) -TestUtil.collocatedTest(name) +TestUtil.clientServerTest(mono, name) +TestUtil.collocatedTest(mono, name) sys.exit(0) |