| 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 1582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1593 _tests.add(test); | 1593 _tests.add(test); |
| 1594 new Timer(100, (_) => _tryRunTest()); // Don't lose a process. | 1594 new Timer(100, (_) => _tryRunTest()); // Don't lose a process. |
| 1595 return; | 1595 return; |
| 1596 } | 1596 } |
| 1597 // Before running any commands, we print out all commands if '--verbose' | 1597 // Before running any commands, we print out all commands if '--verbose' |
| 1598 // was specified. | 1598 // was specified. |
| 1599 if (_verbose && test.commandOutputs.length == 0) { | 1599 if (_verbose && test.commandOutputs.length == 0) { |
| 1600 int i = 1; | 1600 int i = 1; |
| 1601 if (test is BrowserTestCase) { | 1601 if (test is BrowserTestCase) { |
| 1602 // Additional command for rerunning the steps locally after the fact. | 1602 // Additional command for rerunning the steps locally after the fact. |
| 1603 print('$i. ${TestUtils.dartTestExecutable.toNativePath()} ' | 1603 var command = |
| 1604 '${TestUtils.dartDir().toNativePath()}/tools/testing/dart/' | 1604 test.configuration["_servers_"].httpServerCommandline(); |
| 1605 'http_server.dart -m ${test.configuration["mode"]} ' | 1605 print('$i. $command'); |
| 1606 '-a ${test.configuration["arch"]} ' | |
| 1607 '-p ${http_server.TestingServerRunner.serverList[0].port} ' | |
| 1608 '-c ${http_server.TestingServerRunner.serverList[1].port} ' | |
| 1609 '--package-root=' | |
| 1610 '${http_server.TestingServerRunner.packageRootDir}'); | |
| 1611 i++; | 1606 i++; |
| 1612 } | 1607 } |
| 1613 for (Command command in test.commands) { | 1608 for (Command command in test.commands) { |
| 1614 print('$i. ${command.commandLine}'); | 1609 print('$i. ${command.commandLine}'); |
| 1615 i++; | 1610 i++; |
| 1616 } | 1611 } |
| 1617 } | 1612 } |
| 1618 | 1613 |
| 1619 var isLastCommand = | 1614 var isLastCommand = |
| 1620 ((test.commands.length-1) == test.commandOutputs.length); | 1615 ((test.commands.length-1) == test.commandOutputs.length); |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1753 completer.complete(testCase); | 1748 completer.complete(testCase); |
| 1754 } | 1749 } |
| 1755 }); | 1750 }); |
| 1756 } | 1751 } |
| 1757 runCommand(); | 1752 runCommand(); |
| 1758 | 1753 |
| 1759 return completer.future; | 1754 return completer.future; |
| 1760 } | 1755 } |
| 1761 } | 1756 } |
| 1762 | 1757 |
| OLD | NEW |