forked from qt-creator/qt-creator
Squish: Prefer 64bit debugger over 32bit on Windows
We nowadays build with 64bit Qt and need a matching compiler. Especially when testing packages that ship both cdbext versions the preference of 32bit breaks debugging. As a drive by, fix tst_simple_debug by triggering rebuild via locator as menu items are nowadays harder to distinguish. Change-Id: I6f0c1083472713c48b4d558d6c6f9b8b0da2ca77 Reviewed-by: Robert Löhning <robert.loehning@qt.io>
This commit is contained in:
committed by
Robert Löhning
parent
a9f90eea03
commit
bd5c36530b
@@ -204,24 +204,24 @@ def substituteDefaultCompiler(settingsDir):
|
|||||||
test.log("Injected default compiler '%s' to qtversion.xml..." % compiler)
|
test.log("Injected default compiler '%s' to qtversion.xml..." % compiler)
|
||||||
|
|
||||||
def substituteCdb(settingsDir):
|
def substituteCdb(settingsDir):
|
||||||
def canUse32bitCdb():
|
def canUse64bitCdb():
|
||||||
try:
|
try:
|
||||||
serverIni = readFile(os.path.join(os.getenv("APPDATA"), "froglogic",
|
serverIni = readFile(os.path.join(os.getenv("APPDATA"), "froglogic",
|
||||||
"Squish", "ver1", "server.ini"))
|
"Squish", "ver1", "server.ini"))
|
||||||
autLine = filter(lambda line: "AUT/qtcreator" in line, serverIni.splitlines())[0]
|
autLine = filter(lambda line: "AUT/qtcreator" in line, serverIni.splitlines())[0]
|
||||||
autPath = autLine.split("\"")[1]
|
autPath = autLine.split("\"")[1]
|
||||||
return os.path.exists(os.path.join(autPath, "..", "lib", "qtcreatorcdbext32"))
|
return os.path.exists(os.path.join(autPath, "..", "lib", "qtcreatorcdbext64"))
|
||||||
except:
|
except:
|
||||||
test.fatal("Something went wrong when determining debugger bitness",
|
test.fatal("Something went wrong when determining debugger bitness",
|
||||||
"Did Squish's file structure change? Guessing 32-bit cdb can be used...")
|
"Did Squish's file structure change? Guessing 32-bit cdb can be used...")
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if canUse32bitCdb():
|
if canUse64bitCdb():
|
||||||
architecture = "x86"
|
|
||||||
bitness = "32"
|
|
||||||
else:
|
|
||||||
architecture = "x64"
|
architecture = "x64"
|
||||||
bitness = "64"
|
bitness = "64"
|
||||||
|
else:
|
||||||
|
architecture = "x86"
|
||||||
|
bitness = "32"
|
||||||
debuggers = os.path.join(settingsDir, "QtProject", 'qtcreator', 'debuggers.xml')
|
debuggers = os.path.join(settingsDir, "QtProject", 'qtcreator', 'debuggers.xml')
|
||||||
__substitute__(debuggers, "SQUISH_DEBUGGER_ARCHITECTURE", architecture)
|
__substitute__(debuggers, "SQUISH_DEBUGGER_ARCHITECTURE", architecture)
|
||||||
__substitute__(debuggers, "SQUISH_DEBUGGER_BITNESS", bitness)
|
__substitute__(debuggers, "SQUISH_DEBUGGER_BITNESS", bitness)
|
||||||
|
@@ -58,7 +58,7 @@ def main():
|
|||||||
test.log("Selecting '%s' as build config" % config)
|
test.log("Selecting '%s' as build config" % config)
|
||||||
verifyBuildConfig(kit, config, True, True, True)
|
verifyBuildConfig(kit, config, True, True, True)
|
||||||
# explicitly build before start debugging for adding the executable as allowed program to WinFW
|
# explicitly build before start debugging for adding the executable as allowed program to WinFW
|
||||||
invokeMenuItem("Build", "Rebuild All Projects")
|
selectFromLocator("t rebuild", "Rebuild (Rebuild All Projects)")
|
||||||
waitForCompile(300000)
|
waitForCompile(300000)
|
||||||
if not checkCompile():
|
if not checkCompile():
|
||||||
test.fatal("Compile had errors... Skipping current build config")
|
test.fatal("Compile had errors... Skipping current build config")
|
||||||
|
Reference in New Issue
Block a user