| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 #library("test_suite"); | 5 #library("test_suite"); |
| 6 | 6 |
| 7 #import("status_file_parser.dart"); | 7 #import("status_file_parser.dart"); |
| 8 #import("test_runner.dart"); | 8 #import("test_runner.dart"); |
| 9 #import("multitest.dart"); | 9 #import("multitest.dart"); |
| 10 | 10 |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 // Create the HTML file for the test. | 402 // Create the HTML file for the test. |
| 403 RandomAccessFile htmlTest = new File(htmlPath).openSync(FileMode.WRITE); | 403 RandomAccessFile htmlTest = new File(htmlPath).openSync(FileMode.WRITE); |
| 404 htmlTest.writeStringSync(GetHtmlContents( | 404 htmlTest.writeStringSync(GetHtmlContents( |
| 405 filename, | 405 filename, |
| 406 '$dartDir/client/testing/unittest/test_controller.js', | 406 '$dartDir/client/testing/unittest/test_controller.js', |
| 407 scriptType, | 407 scriptType, |
| 408 scriptPath)); | 408 scriptPath)); |
| 409 htmlTest.closeSync(); | 409 htmlTest.closeSync(); |
| 410 | 410 |
| 411 for (var vmOptions in optionsFromFile['vmOptions']) { | 411 for (var vmOptions in optionsFromFile['vmOptions']) { |
| 412 List<String> compilerArgs; | 412 List<String> compilerArgs = TestUtils.standardOptions(configuration); |
| 413 String compilerExecutable = TestUtils.compilerPath(configuration); | 413 String compilerExecutable = TestUtils.compilerPath(configuration); |
| 414 switch (component) { | 414 switch (component) { |
| 415 case 'chromium': | 415 case 'chromium': |
| 416 compilerArgs = ['--work', tempDir.path]; | 416 compilerArgs.addAll(['--work', tempDir.path]); |
| 417 if (configuration['mode'] == 'release') { | 417 if (configuration['mode'] == 'release') { |
| 418 compilerArgs.add('--optimize'); | 418 compilerArgs.add('--optimize'); |
| 419 } | 419 } |
| 420 compilerArgs.addAll(vmOptions); | 420 compilerArgs.addAll(vmOptions); |
| 421 compilerArgs.add('--ignore-unrecognized-flags'); | 421 compilerArgs.add('--ignore-unrecognized-flags'); |
| 422 compilerArgs.add('--out'); | 422 compilerArgs.add('--out'); |
| 423 compilerArgs.add(compiledDartWrapperFilename); | 423 compilerArgs.add(compiledDartWrapperFilename); |
| 424 compilerArgs.add(dartWrapperFilename); | 424 compilerArgs.add(dartWrapperFilename); |
| 425 // TODO(whesse): Add --fatal-type-errors if needed. | 425 // TODO(whesse): Add --fatal-type-errors if needed. |
| 426 break; | 426 break; |
| 427 case 'frogium': | 427 case 'frogium': |
| 428 compilerArgs = ['--libdir=$dartDir/frog/lib', | 428 compilerArgs.addAll(['--libdir=$dartDir/frog/lib', |
| 429 '--compile-only', | 429 '--compile-only', |
| 430 '--out=$compiledDartWrapperFilename']; | 430 '--out=$compiledDartWrapperFilename']); |
| 431 compilerArgs.addAll(vmOptions); | 431 compilerArgs.addAll(vmOptions); |
| 432 compilerArgs.add(dartWrapperFilename); | 432 compilerArgs.add(dartWrapperFilename); |
| 433 break; | 433 break; |
| 434 case 'dartium': | 434 case 'dartium': |
| 435 // No compilation phase. | 435 // No compilation phase. |
| 436 compilerExecutable = null; | 436 compilerExecutable = null; |
| 437 compilerArgs = null; | 437 compilerArgs = null; |
| 438 break; | 438 break; |
| 439 default: | 439 default: |
| 440 Expect.fail('unimplemented component $component'); | 440 Expect.fail('unimplemented component $component'); |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 965 * $noCrash tests are expected to be flaky but not crash | 965 * $noCrash tests are expected to be flaky but not crash |
| 966 * $pass tests are expected to pass | 966 * $pass tests are expected to pass |
| 967 * $failOk tests are expected to fail that we won't fix | 967 * $failOk tests are expected to fail that we won't fix |
| 968 * $fail tests are expected to fail that we should fix | 968 * $fail tests are expected to fail that we should fix |
| 969 * $crash tests are expected to crash that we should fix | 969 * $crash tests are expected to crash that we should fix |
| 970 * $timeout tests are allowed to timeout\ | 970 * $timeout tests are allowed to timeout\ |
| 971 """; | 971 """; |
| 972 print(report); | 972 print(report); |
| 973 } | 973 } |
| 974 } | 974 } |
| OLD | NEW |