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

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

Issue 10201005: Reenable test.dart to be invoked from dartium checkout (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 ea5fdf0dddc785f33f619f92ee43b0c2b13942e4..a33b17c2c5dcab1e51f41c76470ac76639d57ee5 100644
--- a/tools/testing/dart/test_suite.dart
+++ b/tools/testing/dart/test_suite.dart
@@ -666,6 +666,11 @@ class StandardTestSuite implements TestSuite {
default:
Expect.fail('unimplemented compiler $compiler');
}
+ if (executable.endsWith('.dart')) {
+ // Run the compiler script via the Dart VM.
+ args.insertRange(0, 1, executable);
+ executable = TestUtils.dartShellFileName(configuration);
+ }
return new Command(executable, args);
}
@@ -1257,7 +1262,10 @@ class TestUtils {
}
static String dartShellFileName(Map configuration) {
- var name = '${buildDir(configuration)}/${executableName(configuration)}';
+ var name = configuration['shell'];
+ if (name == '') {
+ name = '${buildDir(configuration)}/${executableName(configuration)}';
Bill Hesse 2012/04/24 09:28:25 The real problem is that the buildDir is not corre
vsm 2012/04/24 16:05:57 It's a little more complicated than that. In an a
+ }
if (!(new File(name)).existsSync() && !configuration['list']) {
throw "Executable '$name' does not exist";
}
« tools/testing/dart/test_options.dart ('K') | « tools/testing/dart/test_options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698