Unverified Commit 7ec7d4da authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Test the skp_generator. (#81087)

parent e170ea52
......@@ -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) {
......@@ -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',
......@@ -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>[
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment