Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
ef854a3d
Unverified
Commit
ef854a3d
authored
Feb 08, 2023
by
Loïc Sharma
Committed by
GitHub
Feb 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Tool] [Windows] Output build duration (#120311)
* [Tool][Windows] Output build duration * Tweak * Format
parent
b4908f37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
3 deletions
+32
-3
run_tests.dart
dev/devicelab/lib/tasks/run_tests.dart
+31
-2
build_windows.dart
packages/flutter_tools/lib/src/windows/build_windows.dart
+1
-1
No files found.
dev/devicelab/lib/tasks/run_tests.dart
View file @
ef854a3d
...
...
@@ -58,7 +58,7 @@ TaskFunction createMacOSRunReleaseTest() {
}
TaskFunction
createWindowsRunDebugTest
(
)
{
return
Desktop
RunOutputTest
(
return
Windows
RunOutputTest
(
'
${flutterDirectory.path}
/dev/integration_tests/ui'
,
'lib/empty.dart'
,
release:
false
,
...
...
@@ -66,7 +66,7 @@ TaskFunction createWindowsRunDebugTest() {
}
TaskFunction
createWindowsRunReleaseTest
(
)
{
return
Desktop
RunOutputTest
(
return
Windows
RunOutputTest
(
'
${flutterDirectory.path}
/dev/integration_tests/ui'
,
'lib/empty.dart'
,
release:
true
,
...
...
@@ -164,6 +164,30 @@ class AndroidRunOutputTest extends RunOutputTask {
}
}
class
WindowsRunOutputTest
extends
DesktopRunOutputTest
{
WindowsRunOutputTest
(
super
.
testDirectory
,
super
.
testTarget
,
{
required
super
.
release
,
super
.
allowStderr
=
false
,
}
);
static
final
RegExp
_buildOutput
=
RegExp
(
r'Building Windows application\.\.\.\s*\d+(\.\d+)?(ms|s)'
,
multiLine:
true
,
);
@override
void
verifyBuildOutput
(
List
<
String
>
stdout
)
{
_findNextMatcherInList
(
stdout
,
_buildOutput
.
hasMatch
,
'Building Windows application...'
,
);
}
}
class
DesktopRunOutputTest
extends
RunOutputTask
{
DesktopRunOutputTest
(
super
.
testDirectory
,
...
...
@@ -188,6 +212,8 @@ class DesktopRunOutputTest extends RunOutputTask {
'Launching
$testTarget
on'
,
);
verifyBuildOutput
(
stdout
);
_findNextMatcherInList
(
stdout
,
(
String
line
)
=>
line
.
contains
(
'Quit (terminate the application on the device).'
),
...
...
@@ -202,6 +228,9 @@ class DesktopRunOutputTest extends RunOutputTask {
return
TaskResult
.
success
(
null
);
}
/// Verify the output from `flutter run`'s build step.
void
verifyBuildOutput
(
List
<
String
>
stdout
)
{}
}
/// Test that the output of `flutter run` is expected.
...
...
packages/flutter_tools/lib/src/windows/build_windows.dart
View file @
ef854a3d
...
...
@@ -90,7 +90,7 @@ Future<void> buildWindows(WindowsProject windowsProject, BuildInfo buildInfo, {
}
await
_runBuild
(
cmakePath
,
buildDirectory
,
buildModeName
);
}
finally
{
status
.
cancel
();
status
.
stop
();
}
if
(
buildInfo
.
codeSizeDirectory
!=
null
&&
sizeAnalyzer
!=
null
)
{
final
String
arch
=
getNameForTargetPlatform
(
TargetPlatform
.
windows_x64
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment