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

Unified Diff: tools/test.dart

Issue 8508054: Getting started on options parsing. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 9 years, 1 month 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/standalone/test_config.dart ('k') | tools/testing/dart/test_options.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 a9baeff79e6f6fcf2513db47c8083aea8b6c7f3f..83cc775284d533451c549ba5f9e865b01b86b127 100755
--- a/tools/test.dart
+++ b/tools/test.dart
@@ -6,12 +6,16 @@
#library("test");
#import("testing/dart/test_runner.dart");
+#import("testing/dart/test_options.dart");
+
#import("../tests/standalone/test_config.dart");
#import("../tests/corelib/test_config.dart");
main() {
- int numProcessors = new Platform().numberOfProcessors();
- var queue = new ProcessQueue(numProcessors);
+ var optionsParser = new TestOptionsParser();
+ var configuration = optionsParser.parse(new Options().arguments);
+ if (configuration == null) return;
+ var queue = new ProcessQueue(configuration['tasks']);
new StandaloneTestSuite().forEachTest(queue.runTest);
new CorelibTestSuite().forEachTest(queue.runTest);
}
« no previous file with comments | « tests/standalone/test_config.dart ('k') | tools/testing/dart/test_options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698