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 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1087 } | 1087 } |
1088 args.add('--out=$outputFile'); | 1088 args.add('--out=$outputFile'); |
1089 args.add(inputFile); | 1089 args.add(inputFile); |
1090 break; | 1090 break; |
1091 default: | 1091 default: |
1092 print('unimplemented compiler $compiler'); | 1092 print('unimplemented compiler $compiler'); |
1093 exit(1); | 1093 exit(1); |
1094 } | 1094 } |
1095 if (executable.endsWith('.dart')) { | 1095 if (executable.endsWith('.dart')) { |
1096 // Run the compiler script via the Dart VM. | 1096 // Run the compiler script via the Dart VM. |
1097 args.insertRange(0, 1, executable); | 1097 args.insert(0, executable); |
1098 executable = dartShellFileName; | 1098 executable = dartShellFileName; |
1099 } | 1099 } |
1100 if (['dart2js', 'dart2dart'].contains(configuration['compiler'])) { | 1100 if (['dart2js', 'dart2dart'].contains(configuration['compiler'])) { |
1101 return new CompilationCommand(outputFile, | 1101 return new CompilationCommand(outputFile, |
1102 !useSdk, | 1102 !useSdk, |
1103 dart2JsBootstrapDependencies, | 1103 dart2JsBootstrapDependencies, |
1104 compilerPath, | 1104 compilerPath, |
1105 args); | 1105 args); |
1106 } | 1106 } |
1107 return new Command(executable, args); | 1107 return new Command(executable, args); |
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1938 * $pass tests are expected to pass | 1938 * $pass tests are expected to pass |
1939 * $failOk tests are expected to fail that we won't fix | 1939 * $failOk tests are expected to fail that we won't fix |
1940 * $fail tests are expected to fail that we should fix | 1940 * $fail tests are expected to fail that we should fix |
1941 * $crash tests are expected to crash that we should fix | 1941 * $crash tests are expected to crash that we should fix |
1942 * $timeout tests are allowed to timeout | 1942 * $timeout tests are allowed to timeout |
1943 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 1943 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
1944 """; | 1944 """; |
1945 print(report); | 1945 print(report); |
1946 } | 1946 } |
1947 } | 1947 } |
OLD | NEW |