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

Unified Diff: tools/test.dart

Issue 10584014: Change test scripts to use Path library in most places, instead of strings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: missing semicolon Created 8 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
« no previous file with comments | « tests/co19/test_config.dart ('k') | tools/test-runtime.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/test.dart
diff --git a/tools/test.dart b/tools/test.dart
index 541bdb9b0eb8021f278c36661d5d6304f353c691..2d80ecfd2fd4f02ed9514a4b1feabdfcc4a65cdb 100755
--- a/tools/test.dart
+++ b/tools/test.dart
@@ -25,6 +25,7 @@
#library("test");
+#import("dart:io");
#import("testing/dart/test_runner.dart");
#import("testing/dart/test_options.dart");
#import("testing/dart/test_suite.dart");
@@ -42,26 +43,26 @@
* moved to here, if possible.
*/
final TEST_SUITE_DIRECTORIES = const [
- 'frog/tests/await',
- 'frog/tests/frog',
- 'runtime/tests/vm',
- 'samples/tests/samples',
- 'tests/benchmark_smoke',
- 'tests/compiler/dart2js',
- 'tests/compiler/dart2js_extra',
- 'tests/compiler/dart2js_native',
- 'tests/corelib',
- 'tests/dom',
- 'tests/html',
- 'tests/isolate',
- 'tests/json',
- 'tests/language',
- 'tests/lib',
- 'tests/standalone',
- 'tests/utils',
- 'utils/tests/css',
- 'utils/tests/peg',
- 'utils/tests/pub',
+ const Path('frog/tests/await'),
+ const Path('frog/tests/frog'),
+ const Path('runtime/tests/vm'),
+ const Path('samples/tests/samples'),
+ const Path('tests/benchmark_smoke'),
+ const Path('tests/compiler/dart2js'),
+ const Path('tests/compiler/dart2js_extra'),
+ const Path('tests/compiler/dart2js_native'),
+ const Path('tests/corelib'),
+ const Path('tests/dom'),
+ const Path('tests/html'),
+ const Path('tests/isolate'),
+ const Path('tests/json'),
+ const Path('tests/language'),
+ const Path('tests/lib'),
+ const Path('tests/standalone'),
+ const Path('tests/utils'),
+ const Path('utils/tests/css'),
+ const Path('utils/tests/peg'),
+ const Path('utils/tests/pub'),
];
main() {
@@ -115,7 +116,7 @@ main() {
}
for (final testSuiteDir in TEST_SUITE_DIRECTORIES) {
- final name = testSuiteDir.substring(testSuiteDir.lastIndexOf('/') + 1);
+ final name = testSuiteDir.filename;
if (selectors.containsKey(name)) {
queue.addTestSuite(
new StandardTestSuite.forDirectory(conf, testSuiteDir));
« no previous file with comments | « tests/co19/test_config.dart ('k') | tools/test-runtime.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698