SquishTests: Fix expectation for profiling

Wizard template has changed and we use Qt6.2 nowadays.

Change-Id: I63d0103ac324bcf83f0b07802f57a171589a2fb1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2023-02-17 13:38:13 +01:00
parent 0cf83caa00
commit 507e5f76fa
3 changed files with 13 additions and 13 deletions

View File

@@ -30,7 +30,7 @@ def main():
invokeMenuItem("File", "Save All")
availableConfigs = iterateBuildConfigs("Debug")
if not availableConfigs:
test.fatal("Haven't found a suitable Qt version (need Qt 5.3+) - leaving without debugging.")
test.fatal("Haven't found a suitable Qt version (need Qt 6.2+) - leaving without profiling.")
else:
performTest(workingDir, projectName, availableConfigs)
invokeMenuItem("File", "Exit")
@@ -77,7 +77,7 @@ def performTest(workingDir, projectName, availableConfigs):
colMean, colMedian, colLongest, colShortest) = range(2, 11)
model = waitForObject(":Events.QmlProfilerEventsTable_QmlProfiler::"
"Internal::QmlProfilerStatisticsMainView").model()
compareEventsTab(model, "events_qt5.10.1.tsv")
compareEventsTab(model, "events_qt6.2.4.tsv")
test.compare(dumpItems(model, column=colPercent)[0], '100 %')
# cannot run following test on colShortest (unstable)
for i in [colMean, colMedian, colLongest]:
@@ -120,7 +120,7 @@ def compareEventsTab(model, file):
"Checking number of rows in Events table")
if not test.verify(containsOnce(expectedTable, foundTable),
"Verifying that Events table matches expected values"):
test.log("Events displayed by Creator: %s" % foundTable)
test.log("Events displayed by Creator: %s" % foundTable, str(expectedTable))
def containsOnce(tuple, items):
for item in items:

View File

@@ -1,10 +0,0 @@
"0" "1" "6" "11"
"<program>" "" "1" "Main program"
"main.qml:15" "Handling Signal" "2" "onTriggered: { runCount += 1; var i; for (i = 1; i < 2500; ++i) { var j = i * i; console.log(j); } }"
"main.qml:15" "JavaScript" "2" "onTriggered"
"main.qml:4" "Creating" "2" "QtQuick.Window/Window"
"main.qml:0" "Compiling" "1" "main.qml"
"main.qml:10" "Creating" "2" "QtQuick/Timer"
"main.qml:14" "Binding" "3" "running: runCount < 2"
"main.qml:14" "JavaScript" "3" "expression for running"
"<bytecode>" "Binding" "1" "Source code not available"
1 0 1 6 11
2 <program> 1 Main program
3 main.qml:15 Handling Signal 2 onTriggered: { runCount += 1; var i; for (i = 1; i < 2500; ++i) { var j = i * i; console.log(j); } }
4 main.qml:15 JavaScript 2 onTriggered
5 main.qml:4 Creating 2 QtQuick.Window/Window
6 main.qml:0 Compiling 1 main.qml
7 main.qml:10 Creating 2 QtQuick/Timer
8 main.qml:14 Binding 3 running: runCount < 2
9 main.qml:14 JavaScript 3 expression for running
10 <bytecode> Binding 1 Source code not available

View File

@@ -0,0 +1,10 @@
"0" "1" "6" "11"
"<program>" "" "1" "Main program"
"Main.qml:15" "Handling Signal" "2" "onTriggered: { runCount += 1; var i; for (i = 1; i < 2500; ++i) { var j = i * i; console.log(j); } }"
"Main.qml:15" "JavaScript" "2" "expression for onTriggered"
"Main.qml:4" "Creating" "2" "QtQuick/Window"
"Main.qml:0" "Compiling" "1" "Main.qml"
"Main.qml:10" "Creating" "2" "QtQml/Timer"
"Main.qml:14" "Binding" "3" "running: runCount < 2"
"Main.qml:14" "JavaScript" "3" "expression for running"
"<bytecode>" "Binding" "1" "Source code not available"
1 0 1 6 11
2 <program> 1 Main program
3 Main.qml:15 Handling Signal 2 onTriggered: { runCount += 1; var i; for (i = 1; i < 2500; ++i) { var j = i * i; console.log(j); } }
4 Main.qml:15 JavaScript 2 expression for onTriggered
5 Main.qml:4 Creating 2 QtQuick/Window
6 Main.qml:0 Compiling 1 Main.qml
7 Main.qml:10 Creating 2 QtQml/Timer
8 Main.qml:14 Binding 3 running: runCount < 2
9 Main.qml:14 JavaScript 3 expression for running
10 <bytecode> Binding 1 Source code not available