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
7ec7d4da
Unverified
Commit
7ec7d4da
authored
Apr 23, 2021
by
Ian Hickson
Committed by
GitHub
Apr 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test the skp_generator. (#81087)
parent
e170ea52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
test.dart
dev/bots/test.dart
+29
-2
No files found.
dev/bots/test.dart
View file @
7ec7d4da
...
@@ -112,6 +112,7 @@ Future<void> main(List<String> args) async {
...
@@ -112,6 +112,7 @@ Future<void> main(List<String> args) async {
'web_integration_tests'
:
_runWebIntegrationTests
,
'web_integration_tests'
:
_runWebIntegrationTests
,
'web_long_running_tests'
:
_runWebLongRunningTests
,
'web_long_running_tests'
:
_runWebLongRunningTests
,
'flutter_plugins'
:
_runFlutterPluginsTests
,
'flutter_plugins'
:
_runFlutterPluginsTests
,
'skp_generator'
:
_runSkpGeneratorTests
,
kSmokeTestShardName:
()
async
{},
// No-op, the smoke tests already ran. Used for testing this script.
kSmokeTestShardName:
()
async
{},
// No-op, the smoke tests already ran. Used for testing this script.
});
});
}
on
ExitException
catch
(
error
)
{
}
on
ExitException
catch
(
error
)
{
...
@@ -308,7 +309,7 @@ Future<void> _runToolTests() async {
...
@@ -308,7 +309,7 @@ Future<void> _runToolTests() async {
Future
<
void
>
runForbiddenFromReleaseTests
()
async
{
Future
<
void
>
runForbiddenFromReleaseTests
()
async
{
// Build a release APK to get the snapshot json.
// Build a release APK to get the snapshot json.
final
Directory
tempDirectory
=
Directory
.
systemTemp
.
createTempSync
(
'f
orbidden_imports
'
);
final
Directory
tempDirectory
=
Directory
.
systemTemp
.
createTempSync
(
'f
lutter_forbidden_imports.
'
);
final
List
<
String
>
command
=
<
String
>[
final
List
<
String
>
command
=
<
String
>[
'build'
,
'build'
,
'apk'
,
'apk'
,
...
@@ -868,7 +869,7 @@ Future<String> getFlutterPluginsVersion({
...
@@ -868,7 +869,7 @@ Future<String> getFlutterPluginsVersion({
Future
<
void
>
_runFlutterPluginsTests
()
async
{
Future
<
void
>
_runFlutterPluginsTests
()
async
{
Future
<
void
>
runAnalyze
()
async
{
Future
<
void
>
runAnalyze
()
async
{
print
(
'
${green}
Running analysis for flutter/plugins
$reset
'
);
print
(
'
${green}
Running analysis for flutter/plugins
$reset
'
);
final
Directory
checkout
=
Directory
.
systemTemp
.
createTempSync
(
'
plugins
'
);
final
Directory
checkout
=
Directory
.
systemTemp
.
createTempSync
(
'
flutter_plugins.
'
);
await
runCommand
(
await
runCommand
(
'git'
,
'git'
,
<
String
>[
<
String
>[
...
@@ -907,6 +908,32 @@ Future<void> _runFlutterPluginsTests() async {
...
@@ -907,6 +908,32 @@ Future<void> _runFlutterPluginsTests() async {
});
});
}
}
/// Runs the skp_generator from the flutter/tests repo.
///
/// See also the customer_tests shard.
///
/// Generated SKPs are ditched, this just verifies that it can run without failure.
Future
<
void
>
_runSkpGeneratorTests
()
async
{
print
(
'
${green}
Running skp_generator from flutter/tests
$reset
'
);
final
Directory
checkout
=
Directory
.
systemTemp
.
createTempSync
(
'flutter_skp_generator.'
);
await
runCommand
(
'git'
,
<
String
>[
'-c'
,
'core.longPaths=true'
,
'clone'
,
'https://github.com/flutter/tests.git'
,
'.'
],
workingDirectory:
checkout
.
path
,
);
await
runCommand
(
'./build.sh'
,
<
String
>[
],
workingDirectory:
path
.
join
(
checkout
.
path
,
'skp_generator'
),
);
}
// The `chromedriver` process created by this test.
// The `chromedriver` process created by this test.
//
//
// If an existing chromedriver is already available on port 4444, the existing
// If an existing chromedriver is already available on port 4444, the existing
...
...
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