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
b33bfcef
Unverified
Commit
b33bfcef
authored
Oct 09, 2020
by
Jonah Williams
Committed by
GitHub
Oct 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Delete fast start unit test (#67757)" (#67763)
This reverts commit
3eb2335a
.
parent
3eb2335a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
80 additions
and
0 deletions
+80
-0
gradle_fast_start_test.dart
dev/devicelab/bin/tasks/gradle_fast_start_test.dart
+41
-0
prod_builders.json
dev/prod_builders.json
+18
-0
try_builders.json
dev/try_builders.json
+21
-0
No files found.
dev/devicelab/bin/tasks/gradle_fast_start_test.dart
0 → 100644
View file @
b33bfcef
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'package:flutter_devicelab/framework/apk_utils.dart'
;
import
'package:flutter_devicelab/framework/framework.dart'
;
import
'package:flutter_devicelab/framework/task_result.dart'
;
import
'package:flutter_devicelab/framework/utils.dart'
;
Future
<
void
>
main
()
async
{
await
task
(()
async
{
try
{
await
runPluginProjectTest
((
FlutterPluginProject
pluginProject
)
async
{
section
(
'APK content for task assembleDebug with --fast-start'
);
await
pluginProject
.
runGradleTask
(
'assembleDebug'
,
options:
<
String
>[
'-Pfast-start=true'
]);
final
Iterable
<
String
>
apkFiles
=
await
getFilesInApk
(
pluginProject
.
debugApkPath
);
checkCollectionContains
<
String
>(<
String
>[
...
debugAssets
,
...
baseApkFiles
,
'lib/x86/libflutter.so'
,
'lib/x86_64/libflutter.so'
,
'lib/armeabi-v7a/libflutter.so'
,
'lib/arm64-v8a/libflutter.so'
,
],
apkFiles
);
checkCollectionDoesNotContain
<
String
>(<
String
>[
...
flutterAssets
,
],
apkFiles
);
});
return
TaskResult
.
success
(
null
);
}
on
TaskResult
catch
(
taskResult
)
{
return
taskResult
;
}
catch
(
e
)
{
return
TaskResult
.
failure
(
e
.
toString
());
}
});
}
dev/prod_builders.json
View file @
b33bfcef
...
...
@@ -60,6 +60,12 @@
"task_name"
:
"linux_fuchsia_precache"
,
"flaky"
:
false
},
{
"name"
:
"Linux gradle_fast_start_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_gradle_fast_start_test"
,
"flaky"
:
false
},
{
"name"
:
"Linux gradle_jetifier_test"
,
"repo"
:
"flutter"
,
...
...
@@ -180,6 +186,12 @@
"task_name"
:
"mac_framework_tests"
,
"flaky"
:
false
},
{
"name"
:
"Mac gradle_fast_start_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"mac_gradle_fast_start_test"
,
"flaky"
:
false
},
{
"name"
:
"Mac gradle_jetifier_test"
,
"repo"
:
"flutter"
,
...
...
@@ -288,6 +300,12 @@
"task_name"
:
"win_framework_tests"
,
"flaky"
:
false
},
{
"name"
:
"Windows gradle_fast_start_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"win_gradle_fast_start_test"
,
"flaky"
:
false
},
{
"name"
:
"Windows gradle_jetifier_test"
,
"repo"
:
"flutter"
,
...
...
dev/try_builders.json
View file @
b33bfcef
...
...
@@ -63,6 +63,13 @@
"task_name"
:
"linux_fuchsia_precache"
,
"enabled"
:
true
},
{
"name"
:
"Linux gradle_fast_start_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_gradle_fast_start_test"
,
"enabled"
:
true
,
"run_if"
:
[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Linux gradle_jetifier_test"
,
"repo"
:
"flutter"
,
...
...
@@ -207,6 +214,13 @@
"enabled"
:
true
,
"run_if"
:[
"dev/**"
,
"packages/flutter/**"
,
"packages/flutter_goldens/**"
,
"packages/flutter_goldens_client/**"
,
"packages/flutter_test/**"
,
"packages/flutter_tools/lib/src/test/**"
,
"bin/**"
]
},
{
"name"
:
"Mac gradle_fast_start_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"mac_gradle_fast_start_test"
,
"enabled"
:
true
,
"run_if"
:[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Mac gradle_jetifier_test"
,
"repo"
:
"flutter"
,
...
...
@@ -331,6 +345,13 @@
"enabled"
:
true
,
"run_if"
:[
"dev/"
,
"packages/flutter/"
,
"packages/flutter_test/"
,
"packages/flutter_goldens/"
,
"packages/flutter_tools/lib/src/test/"
,
"bin/"
]
},
{
"name"
:
"Windows gradle_fast_start_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"win_gradle_fast_start_test"
,
"enabled"
:
true
,
"run_if"
:[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Windows gradle_jetifier_test"
,
"repo"
:
"flutter"
,
...
...
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