Unverified Commit f8a5c861 authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Pass icu data file to fuchsia_tester (#20605)

parent d8d44abe
...@@ -27,6 +27,7 @@ const String _kOptionTestDirectory = 'test-directory'; ...@@ -27,6 +27,7 @@ const String _kOptionTestDirectory = 'test-directory';
const String _kOptionSdkRoot = 'sdk-root'; const String _kOptionSdkRoot = 'sdk-root';
const String _kOptionTestFile = 'test-file'; const String _kOptionTestFile = 'test-file';
const String _kOptionDillFile = 'dill-file'; const String _kOptionDillFile = 'dill-file';
const String _kOptionIcudtl = 'icudtl';
const List<String> _kRequiredOptions = <String>[ const List<String> _kRequiredOptions = <String>[
_kOptionPackages, _kOptionPackages,
_kOptionShell, _kOptionShell,
...@@ -34,6 +35,7 @@ const List<String> _kRequiredOptions = <String>[ ...@@ -34,6 +35,7 @@ const List<String> _kRequiredOptions = <String>[
_kOptionSdkRoot, _kOptionSdkRoot,
_kOptionTestFile, _kOptionTestFile,
_kOptionDillFile, _kOptionDillFile,
_kOptionIcudtl
]; ];
const String _kOptionCoverage = 'coverage'; const String _kOptionCoverage = 'coverage';
const String _kOptionCoveragePath = 'coverage-path'; const String _kOptionCoveragePath = 'coverage-path';
...@@ -52,6 +54,7 @@ Future<Null> run(List<String> args) async { ...@@ -52,6 +54,7 @@ Future<Null> run(List<String> args) async {
..addOption(_kOptionSdkRoot, help: 'Path to the SDK platform files') ..addOption(_kOptionSdkRoot, help: 'Path to the SDK platform files')
..addOption(_kOptionTestFile, help: 'Test file to execute') ..addOption(_kOptionTestFile, help: 'Test file to execute')
..addOption(_kOptionDillFile, help: 'Precompiled dill file for test') ..addOption(_kOptionDillFile, help: 'Precompiled dill file for test')
..addOption(_kOptionIcudtl, help: 'Path to the ICU data file')
..addFlag(_kOptionCoverage, ..addFlag(_kOptionCoverage,
defaultsTo: false, defaultsTo: false,
negatable: false, negatable: false,
...@@ -91,6 +94,8 @@ Future<Null> run(List<String> args) async { ...@@ -91,6 +94,8 @@ Future<Null> run(List<String> args) async {
fs.link(artifacts.getArtifactPath(Artifact.flutterTester)); fs.link(artifacts.getArtifactPath(Artifact.flutterTester));
testerDestLink.parent.createSync(recursive: true); testerDestLink.parent.createSync(recursive: true);
testerDestLink.createSync(shellPath); testerDestLink.createSync(shellPath);
final Link icudtlLink = testerDestLink.parent.childLink('icudtl.dat');
icudtlLink.createSync(argResults[_kOptionIcudtl]);
final Directory sdkRootDest = final Directory sdkRootDest =
fs.directory(artifacts.getArtifactPath(Artifact.flutterPatchedSdkPath)); fs.directory(artifacts.getArtifactPath(Artifact.flutterPatchedSdkPath));
sdkRootDest.createSync(recursive: true); sdkRootDest.createSync(recursive: true);
......
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