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

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

Issue 9791042: Apply Siggi's comments (compile also for drt step). (Closed) Base URL: http://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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/tests/client/client.status ('k') | 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /** 5 /**
6 * Classes and methods for enumerating and preparing tests. 6 * Classes and methods for enumerating and preparing tests.
7 * 7 *
8 * This library includes: 8 * This library includes:
9 * 9 *
10 * - Creating tests by listing all the Dart files in certain directories, 10 * - Creating tests by listing all the Dart files in certain directories,
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 htmlTest.writeStringSync(GetHtmlContents( 512 htmlTest.writeStringSync(GetHtmlContents(
513 filename, 513 filename,
514 '$filePrefix$dartDir/client/testing/unittest/test_controller.js', 514 '$filePrefix$dartDir/client/testing/unittest/test_controller.js',
515 scriptType, 515 scriptType,
516 filePrefix + scriptPath)); 516 filePrefix + scriptPath));
517 htmlTest.closeSync(); 517 htmlTest.closeSync();
518 518
519 // Construct the command(s) that compile all the inputs needed by the 519 // Construct the command(s) that compile all the inputs needed by the
520 // browser test. For running Dart in DRT, this will be noop commands. 520 // browser test. For running Dart in DRT, this will be noop commands.
521 List<Command> commands = []; 521 List<Command> commands = [];
522 if (compiler != 'none' && runtime != 'drt') { 522 if (compiler != 'none' ) {
523 commands.add(_compileCommand( 523 commands.add(_compileCommand(
524 dartWrapperFilename, compiledDartWrapperFilename, 524 dartWrapperFilename, compiledDartWrapperFilename,
525 compiler, tempDir.path, vmOptions)); 525 compiler, tempDir.path, vmOptions));
526 526
527 // some tests require compiling multiple input scripts. 527 // some tests require compiling multiple input scripts.
528 List<String> otherScripts = optionsFromFile['otherScripts']; 528 List<String> otherScripts = optionsFromFile['otherScripts'];
529 for (String name in otherScripts) { 529 for (String name in otherScripts) {
530 int end = filename.lastIndexOf('/'); 530 int end = filename.lastIndexOf('/');
531 if (end == -1) { 531 if (end == -1) {
532 print('Warning: error processing "OtherScripts" of $filename.'); 532 print('Warning: error processing "OtherScripts" of $filename.');
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 * $noCrash tests are expected to be flaky but not crash 1234 * $noCrash tests are expected to be flaky but not crash
1235 * $pass tests are expected to pass 1235 * $pass tests are expected to pass
1236 * $failOk tests are expected to fail that we won't fix 1236 * $failOk tests are expected to fail that we won't fix
1237 * $fail tests are expected to fail that we should fix 1237 * $fail tests are expected to fail that we should fix
1238 * $crash tests are expected to crash that we should fix 1238 * $crash tests are expected to crash that we should fix
1239 * $timeout tests are allowed to timeout 1239 * $timeout tests are allowed to timeout
1240 """; 1240 """;
1241 print(report); 1241 print(report);
1242 } 1242 }
1243 } 1243 }
OLDNEW
« no previous file with comments | « client/tests/client/client.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698