| 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 1772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1783 commands.add(CommandBuilder.instance.getPubCommand( | 1783 commands.add(CommandBuilder.instance.getPubCommand( |
| 1784 "get", pubPath, checkoutDir, cacheDir)); | 1784 "get", pubPath, checkoutDir, cacheDir)); |
| 1785 | 1785 |
| 1786 bool containsWebDirectory = dirExists(directoryPath.append('web')); | 1786 bool containsWebDirectory = dirExists(directoryPath.append('web')); |
| 1787 bool containsBuildDartFile = | 1787 bool containsBuildDartFile = |
| 1788 fileExists(directoryPath.append('build.dart')); | 1788 fileExists(directoryPath.append('build.dart')); |
| 1789 if (containsBuildDartFile) { | 1789 if (containsBuildDartFile) { |
| 1790 var dartBinary = new File(dartVmBinaryFileName).absolute.path; | 1790 var dartBinary = new File(dartVmBinaryFileName).absolute.path; |
| 1791 | 1791 |
| 1792 commands.add(CommandBuilder.instance.getProcessCommand( | 1792 commands.add(CommandBuilder.instance.getProcessCommand( |
| 1793 "custom_build", dartBinary, ['build.dart'], null, | 1793 "custom_build", dartBinary, ['build.dart'], |
| 1794 checkoutDir)); | 1794 {'PUB_CACHE': cacheDir}, checkoutDir)); |
| 1795 | 1795 |
| 1796 // We only try to deploy the application if it's a webapp. | 1796 // We only try to deploy the application if it's a webapp. |
| 1797 if (containsWebDirectory) { | 1797 if (containsWebDirectory) { |
| 1798 commands.add(CommandBuilder.instance.getProcessCommand( | 1798 commands.add(CommandBuilder.instance.getProcessCommand( |
| 1799 "custom_deploy", dartBinary, ['build.dart', '--deploy'], null, | 1799 "custom_deploy", dartBinary, ['build.dart', '--deploy'], |
| 1800 checkoutDir)); | 1800 {'PUB_CACHE': cacheDir}, checkoutDir)); |
| 1801 } | 1801 } |
| 1802 } else if (containsWebDirectory) { | 1802 } else if (containsWebDirectory) { |
| 1803 commands.add(CommandBuilder.instance.getPubCommand( | 1803 commands.add(CommandBuilder.instance.getPubCommand( |
| 1804 "build", pubPath, checkoutDir, cacheDir)); | 1804 "build", pubPath, checkoutDir, cacheDir)); |
| 1805 } | 1805 } |
| 1806 | 1806 |
| 1807 // Enqueue TestCase | 1807 // Enqueue TestCase |
| 1808 var testCase = new TestCase(displayName, | 1808 var testCase = new TestCase(displayName, |
| 1809 commands, configuration, testExpectations.expectations(testName)); | 1809 commands, configuration, testExpectations.expectations(testName)); |
| 1810 enqueueNewTestCase(testCase); | 1810 enqueueNewTestCase(testCase); |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2222 * $pass tests are expected to pass | 2222 * $pass tests are expected to pass |
| 2223 * $failOk tests are expected to fail that we won't fix | 2223 * $failOk tests are expected to fail that we won't fix |
| 2224 * $fail tests are expected to fail that we should fix | 2224 * $fail tests are expected to fail that we should fix |
| 2225 * $crash tests are expected to crash that we should fix | 2225 * $crash tests are expected to crash that we should fix |
| 2226 * $timeout tests are allowed to timeout | 2226 * $timeout tests are allowed to timeout |
| 2227 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 2227 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 2228 """; | 2228 """; |
| 2229 print(report); | 2229 print(report); |
| 2230 } | 2230 } |
| 2231 } | 2231 } |
| OLD | NEW |