Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: tools/testing/dart/options.dart

Issue 2918403002: Update test.py's --arch=all to match that of build.py. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:io'; 5 import 'dart:io';
6 6
7 import 'configuration.dart'; 7 import 'configuration.dart';
8 import 'drt_updater.dart'; 8 import 'drt_updater.dart';
9 import 'path.dart'; 9 import 'path.dart';
10 import 'test_suite.dart'; 10 import 'test_suite.dart';
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 // Install the runtime if needed. 555 // Install the runtime if needed.
556 var updater = runtimeUpdater( 556 var updater = runtimeUpdater(
557 runtime, data["drt"] as String, data["dartium"] as String); 557 runtime, data["drt"] as String, data["dartium"] as String);
558 if (updater != null) { 558 if (updater != null) {
559 updater.update(); 559 updater.update();
560 } 560 }
561 561
562 // Expand architectures. 562 // Expand architectures.
563 var architectures = data["arch"] as String; 563 var architectures = data["arch"] as String;
564 if (architectures == "all") { 564 if (architectures == "all") {
565 architectures = "ia32,x64,simarm,simarm64,simmips,simdbc64"; 565 architectures = "ia32,x64,simarm,simarm64,simdbc64";
566 } 566 }
567 567
568 for (var architectureName in architectures.split(",")) { 568 for (var architectureName in architectures.split(",")) {
569 var architecture = Architecture.find(architectureName); 569 var architecture = Architecture.find(architectureName);
570 570
571 // Expand compilers. 571 // Expand compilers.
572 var compilers = data["compiler"] as String; 572 var compilers = data["compiler"] as String;
573 for (var compilerName in compilers.split(",")) { 573 for (var compilerName in compilers.split(",")) {
574 var compiler = Compiler.find(compilerName); 574 var compiler = Compiler.find(compilerName);
575 575
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 if (name == option.name) return option; 770 if (name == option.name) return option;
771 771
772 // Allow hyphens instead of underscores as the separator since they are 772 // Allow hyphens instead of underscores as the separator since they are
773 // more common for command line flags. 773 // more common for command line flags.
774 if (name == option.name.replaceAll("_", "-")) return option; 774 if (name == option.name.replaceAll("_", "-")) return option;
775 } 775 }
776 776
777 return null; 777 return null;
778 } 778 }
779 } 779 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698