这是indexloc提供的服务,不要输入任何密码
Skip to content

Test the skp_generator. #81087

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 29 additions & 2 deletions dev/bots/test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ Future<void> main(List<String> args) async {
'web_integration_tests': _runWebIntegrationTests,
'web_long_running_tests': _runWebLongRunningTests,
'flutter_plugins': _runFlutterPluginsTests,
'skp_generator': _runSkpGeneratorTests,
kSmokeTestShardName: () async {}, // No-op, the smoke tests already ran. Used for testing this script.
});
} on ExitException catch (error) {
Expand Down Expand Up @@ -308,7 +309,7 @@ Future<void> _runToolTests() async {

Future<void> runForbiddenFromReleaseTests() async {
// Build a release APK to get the snapshot json.
final Directory tempDirectory = Directory.systemTemp.createTempSync('forbidden_imports');
final Directory tempDirectory = Directory.systemTemp.createTempSync('flutter_forbidden_imports.');
final List<String> command = <String>[
'build',
'apk',
Expand Down Expand Up @@ -868,7 +869,7 @@ Future<String> getFlutterPluginsVersion({
Future<void> _runFlutterPluginsTests() async {
Future<void> runAnalyze() async {
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(
'git',
<String>[
Expand Down Expand Up @@ -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.
//
// If an existing chromedriver is already available on port 4444, the existing
Expand Down