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

Unified Diff: tools/testing/dart/test_suite.dart

Issue 16357010: Basic dart^2 analyzer tests running. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: tools/testing/dart/test_suite.dart
diff --git a/tools/testing/dart/test_suite.dart b/tools/testing/dart/test_suite.dart
index 843bb8c449b3efae8ee957435886730e7917a4a0..1eed1b83e95465d79c8d46e5451830beb5a82128 100644
--- a/tools/testing/dart/test_suite.dart
+++ b/tools/testing/dart/test_suite.dart
@@ -141,6 +141,7 @@ abstract class TestSuite {
switch (configuration['compiler']) {
case 'dartc':
case 'dartanalyzer':
+ case 'dart2analyzer':
name = executablePath;
break;
case 'dart2js':
@@ -183,6 +184,8 @@ abstract class TestSuite {
return '$buildDir/analyzer/bin/dart_analyzer$suffix';
case 'dartanalyzer':
return 'sdk/bin/dartanalyzer_developer$suffix';
+ case 'dart2analyzer':
+ return 'sdk/bin/dart2analyzer_developer$suffix';
default:
throw "Unknown executable for: ${configuration['compiler']}";
}
@@ -793,6 +796,7 @@ class StandardTestSuite extends TestSuite {
case 'none':
case 'dartc':
case 'dartanalyzer':
+ case 'dart2analyzer':
var arguments = new List.from(vmOptions);
arguments.addAll(args);
return <Command>[new Command(dartShellFileName, arguments)];
@@ -1169,6 +1173,7 @@ class StandardTestSuite extends TestSuite {
return 'application/dart';
case 'dart2js':
case 'dartanalyzer':
+ case 'dart2analyzer':
case 'dartc':
return 'text/javascript';
default:
@@ -1845,7 +1850,7 @@ class TestUtils {
const ['d8', 'jsshell'].contains(runtime);
static bool isCommandLineAnalyzer(String compiler) =>
- compiler == 'dartc' || compiler == 'dartanalyzer';
+ compiler == 'dartc' || compiler == 'dartanalyzer' || compiler == 'dart2analyzer';
static String buildDir(Map configuration) {
// FIXME(kustermann,ricow): Our code assumes that the returned 'buildDir'

Powered by Google App Engine
This is Rietveld 408576698