forked from qt-creator/qt-creator
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:
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
|
10
tests/system/suite_debugger/tst_simple_analyze/testdata/events_qt6.2.4.tsv
vendored
Normal file
10
tests/system/suite_debugger/tst_simple_analyze/testdata/events_qt6.2.4.tsv
vendored
Normal 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"
|
||||
|
Reference in New Issue
Block a user