| OLD | NEW |
| 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 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1115 } | 1115 } |
| 1116 | 1116 |
| 1117 // Create '[build dir]/generated_tests/$compiler-$runtime/$testUniqueName', | 1117 // Create '[build dir]/generated_tests/$compiler-$runtime/$testUniqueName', |
| 1118 // including any intermediate directories that don't exist. | 1118 // including any intermediate directories that don't exist. |
| 1119 // If the tests are run in checked or minified mode we add that to the | 1119 // If the tests are run in checked or minified mode we add that to the |
| 1120 // '$compile-$runtime' directory name. | 1120 // '$compile-$runtime' directory name. |
| 1121 var checked = configuration['checked'] ? '-checked' : ''; | 1121 var checked = configuration['checked'] ? '-checked' : ''; |
| 1122 var minified = configuration['minified'] ? '-minified' : ''; | 1122 var minified = configuration['minified'] ? '-minified' : ''; |
| 1123 var dirName = "${configuration['compiler']}-${configuration['runtime']}" | 1123 var dirName = "${configuration['compiler']}-${configuration['runtime']}" |
| 1124 "$checked$minified"; | 1124 "$checked$minified"; |
| 1125 Path generatedTestPath = new Path(dartDir.toNativePath()) | 1125 Path generatedTestPath = new Path(buildDir) |
| 1126 .append(buildDir) | |
| 1127 .append('generated_tests') | 1126 .append('generated_tests') |
| 1128 .append(dirName) | 1127 .append(dirName) |
| 1129 .append(testUniqueName); | 1128 .append(testUniqueName); |
| 1130 | 1129 |
| 1131 TestUtils.mkdirRecursive(new Path('.'), generatedTestPath); | 1130 TestUtils.mkdirRecursive(new Path('.'), generatedTestPath); |
| 1132 return new File.fromPath(generatedTestPath).fullPathSync() | 1131 return new File.fromPath(generatedTestPath).fullPathSync() |
| 1133 .replaceAll('\\', '/'); | 1132 .replaceAll('\\', '/'); |
| 1134 } | 1133 } |
| 1135 | 1134 |
| 1136 String get scriptType { | 1135 String get scriptType { |
| (...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1907 * $pass tests are expected to pass | 1906 * $pass tests are expected to pass |
| 1908 * $failOk tests are expected to fail that we won't fix | 1907 * $failOk tests are expected to fail that we won't fix |
| 1909 * $fail tests are expected to fail that we should fix | 1908 * $fail tests are expected to fail that we should fix |
| 1910 * $crash tests are expected to crash that we should fix | 1909 * $crash tests are expected to crash that we should fix |
| 1911 * $timeout tests are allowed to timeout | 1910 * $timeout tests are allowed to timeout |
| 1912 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 1911 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 1913 """; | 1912 """; |
| 1914 print(report); | 1913 print(report); |
| 1915 } | 1914 } |
| 1916 } | 1915 } |
| OLD | NEW |