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 executing tests. | 6 * Classes and methods for executing tests. |
7 * | 7 * |
8 * This module includes: | 8 * This module includes: |
9 * - Managing parallel execution of tests, including timeout checks. | 9 * - Managing parallel execution of tests, including timeout checks. |
10 * - Evaluating the output of each test as pass/fail/crash/timeout. | 10 * - Evaluating the output of each test as pass/fail/crash/timeout. |
(...skipping 1750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1761 return new VmCommandOutputImpl( | 1761 return new VmCommandOutputImpl( |
1762 command, exitCode, timedOut, stdout, stderr, time, pid); | 1762 command, exitCode, timedOut, stdout, stderr, time, pid); |
1763 } else if (command is KernelCompilationCommand) { | 1763 } else if (command is KernelCompilationCommand) { |
1764 return new KernelCompilationCommandOutputImpl( | 1764 return new KernelCompilationCommandOutputImpl( |
1765 command, exitCode, timedOut, stdout, stderr, time, compilationSkipped); | 1765 command, exitCode, timedOut, stdout, stderr, time, compilationSkipped); |
1766 } else if (command is AdbPrecompilationCommand) { | 1766 } else if (command is AdbPrecompilationCommand) { |
1767 return new VmCommandOutputImpl( | 1767 return new VmCommandOutputImpl( |
1768 command, exitCode, timedOut, stdout, stderr, time, pid); | 1768 command, exitCode, timedOut, stdout, stderr, time, pid); |
1769 } else if (command is CompilationCommand) { | 1769 } else if (command is CompilationCommand) { |
1770 if (command.displayName == 'precompiler' || | 1770 if (command.displayName == 'precompiler' || |
1771 command.displayName == 'dart2snapshot') { | 1771 command.displayName == 'app_jit') { |
1772 return new VmCommandOutputImpl( | 1772 return new VmCommandOutputImpl( |
1773 command, exitCode, timedOut, stdout, stderr, time, pid); | 1773 command, exitCode, timedOut, stdout, stderr, time, pid); |
1774 } | 1774 } |
1775 return new CompilationCommandOutputImpl( | 1775 return new CompilationCommandOutputImpl( |
1776 command, exitCode, timedOut, stdout, stderr, time, compilationSkipped); | 1776 command, exitCode, timedOut, stdout, stderr, time, compilationSkipped); |
1777 } else if (command is JSCommandlineCommand) { | 1777 } else if (command is JSCommandlineCommand) { |
1778 return new JsCommandlineOutputImpl( | 1778 return new JsCommandlineOutputImpl( |
1779 command, exitCode, timedOut, stdout, stderr, time); | 1779 command, exitCode, timedOut, stdout, stderr, time); |
1780 } else if (command is PubCommand) { | 1780 } else if (command is PubCommand) { |
1781 return new PubCommandOutputImpl( | 1781 return new PubCommandOutputImpl( |
(...skipping 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3154 } | 3154 } |
3155 } | 3155 } |
3156 | 3156 |
3157 void eventAllTestsDone() { | 3157 void eventAllTestsDone() { |
3158 for (var listener in _eventListener) { | 3158 for (var listener in _eventListener) { |
3159 listener.allDone(); | 3159 listener.allDone(); |
3160 } | 3160 } |
3161 _allDone(); | 3161 _allDone(); |
3162 } | 3162 } |
3163 } | 3163 } |
OLD | NEW |