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
8d643013
Unverified
Commit
8d643013
authored
Oct 08, 2018
by
Yegor
Committed by
GitHub
Oct 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add AOT smoke tests to Cirrus (#22751)
parent
c689c97d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
.cirrus.yml
.cirrus.yml
+8
-0
test.dart
dev/bots/test.dart
+22
-0
No files found.
.cirrus.yml
View file @
8d643013
...
@@ -62,6 +62,14 @@ task:
...
@@ -62,6 +62,14 @@ task:
container
:
container
:
cpu
:
4
cpu
:
4
memory
:
8G
memory
:
8G
-
name
:
aot_build_tests-linux
env
:
SHARD
:
aot_build_tests
test_script
:
-
dart ./dev/bots/test.dart
container
:
cpu
:
4
memory
:
8G
-
name
:
codelabs-build-test
-
name
:
codelabs-build-test
env
:
env
:
SHARD
:
codelabs-build-test
SHARD
:
codelabs-build-test
...
...
dev/bots/test.dart
View file @
8d643013
...
@@ -21,6 +21,7 @@ final List<String> flutterTestArgs = <String>[];
...
@@ -21,6 +21,7 @@ final List<String> flutterTestArgs = <String>[];
const
Map
<
String
,
ShardRunner
>
_kShards
=
<
String
,
ShardRunner
>{
const
Map
<
String
,
ShardRunner
>
_kShards
=
<
String
,
ShardRunner
>{
'tests'
:
_runTests
,
'tests'
:
_runTests
,
'tool_tests'
:
_runToolTests
,
'tool_tests'
:
_runToolTests
,
'aot_build_tests'
:
_runAotBuildTests
,
'coverage'
:
_runCoverage
,
'coverage'
:
_runCoverage
,
};
};
...
@@ -149,6 +150,27 @@ Future<void> _runToolTests() async {
...
@@ -149,6 +150,27 @@ Future<void> _runToolTests() async {
print
(
'
${bold}
DONE: All tests successful.
$reset
'
);
print
(
'
${bold}
DONE: All tests successful.
$reset
'
);
}
}
/// Verifies that AOT builds of some examples apps finish
/// without crashing. It does not actually launch the AOT-built
/// apps. That happens later in the devicelab. This is just
/// a smoke-test.
Future
<
void
>
_runAotBuildTests
()
async
{
await
_flutterBuildAot
(
path
.
join
(
'examples'
,
'hello_world'
));
await
_flutterBuildAot
(
path
.
join
(
'examples'
,
'flutter_gallery'
));
await
_flutterBuildAot
(
path
.
join
(
'examples'
,
'flutter_view'
));
print
(
'
${bold}
DONE: All AOT build tests successful.
$reset
'
);
}
Future
<
void
>
_flutterBuildAot
(
String
relativePathToApplication
)
{
return
runCommand
(
flutter
,
<
String
>[
'build'
,
'aot'
],
workingDirectory:
path
.
join
(
flutterRoot
,
relativePathToApplication
),
expectNonZeroExit:
false
,
timeout:
_kShortTimeout
,
);
}
Future
<
void
>
_runTests
()
async
{
Future
<
void
>
_runTests
()
async
{
await
_runSmokeTests
();
await
_runSmokeTests
();
...
...
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