diff options
author | Jose <jose@zeroc.com> | 2012-07-26 21:25:31 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2012-07-26 21:25:31 +0200 |
commit | c523007f5eef80217080799be34510e44d7b8001 (patch) | |
tree | bdb0f4a79722d69f837d7d62552810796ce19c77 /scripts/TestUtil.py | |
parent | MinGW & Ruby-1.9 updates (diff) | |
download | ice-c523007f5eef80217080799be34510e44d7b8001.tar.bz2 ice-c523007f5eef80217080799be34510e44d7b8001.tar.xz ice-c523007f5eef80217080799be34510e44d7b8001.zip |
ICE-4694 - --x64 & OSx
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-x | scripts/TestUtil.py | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py index 3cdce99ad47..20ac0eee08a 100755 --- a/scripts/TestUtil.py +++ b/scripts/TestUtil.py @@ -204,7 +204,7 @@ def configurePaths(): libDir = os.path.join(libDir, "sparcv9") else: libDir = os.path.join(libDir, "amd64") - else: + elif not isDarwin(): libDir = libDir + "64" addLdPath(libDir) @@ -898,6 +898,13 @@ def getCommandLineProperties(exe, config): def getCommandLine(exe, config, options = ""): + arch = "" + if isDarwin() and config.lang == "cpp": + if x64: + arch = "arch -x86_64 " + else: + arch = "arch -i386 " + output = getStringIO() if config.mono and config.lang == "cs": @@ -926,12 +933,12 @@ def getCommandLine(exe, config, options = ""): # --child-silent-after-fork=yes is required for the IceGrid/activator test where the node # forks a process with execv failing (invalid exe name). output.write("valgrind -q --child-silent-after-fork=yes --leak-check=full ") - output.write('--suppressions="' + os.path.join(toplevel, "config", "valgrind.sup") + '" "' + exe + '" ') + output.write('--suppressions="' + os.path.join(toplevel, "config", "valgrind.sup") + '" ' + arch + '"' + exe + '" ') else: if exe.find(" ") != -1: - output.write('"' + exe + '" ') + output.write(arch + '"' + exe + '" ') else: - output.write(exe + " ") + output.write(arch + exe + " ") if (config.silverlight and config.type == "client"): properties = getCommandLineProperties(exe, config) + ' ' + options @@ -1314,15 +1321,13 @@ def simpleTest(exe = None, options = ""): setAppVerifierSettings([quoteArgument(exe)]) lang = getDefaultMapping() config = None - if lang != "cpp": - config = DriverConfig("client") - config.lang = lang + + config = DriverConfig("client") + config.lang = lang sys.stdout.write("starting client... ") sys.stdout.flush() - command = exe + ' ' + options - if lang != "cpp": - command = getCommandLine(exe, config, options) + command = getCommandLine(exe, config, options) client = spawnClient(command, startReader = False, lang = lang) print("ok") client.startReader() |