| 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 2715 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2726     steps.add(() => device.runAdbCommand( | 2726     steps.add(() => device.runAdbCommand( | 
| 2727         ['push', processTest, '$devicedir/process_test'])); | 2727         ['push', processTest, '$devicedir/process_test'])); | 
| 2728     steps.add(() => device.runAdbShellCommand( | 2728     steps.add(() => device.runAdbShellCommand( | 
| 2729         ['chmod', '777', '$devicedir/dart_precompiled_runtime $devicedir/process
      _test'])); | 2729         ['chmod', '777', '$devicedir/dart_precompiled_runtime $devicedir/process
      _test'])); | 
| 2730 | 2730 | 
| 2731     for (var file in files) { | 2731     for (var file in files) { | 
| 2732       steps.add(() => device | 2732       steps.add(() => device | 
| 2733           .runAdbCommand(['push', '$testdir/$file', '$deviceTestDir/$file'])); | 2733           .runAdbCommand(['push', '$testdir/$file', '$deviceTestDir/$file'])); | 
| 2734     } | 2734     } | 
| 2735 | 2735 | 
| 2736     var args = new List(); |  | 
| 2737     args.addAll(arguments); |  | 
| 2738     for (var i = 0; i < args.length; i++) { |  | 
| 2739       if (args[i].endsWith(".dart")) { |  | 
| 2740         args[i] = "$deviceTestDir/out.aotsnapshot"; |  | 
| 2741       } |  | 
| 2742     } |  | 
| 2743 |  | 
| 2744     steps.add(() => device.runAdbShellCommand( | 2736     steps.add(() => device.runAdbShellCommand( | 
| 2745         [ | 2737         [ | 
| 2746           '$devicedir/dart_precompiled_runtime', | 2738           '$devicedir/dart_precompiled_runtime', | 
| 2747         ]..addAll(args), | 2739         ]..addAll(arguments), | 
| 2748         timeout: timeoutDuration)); | 2740         timeout: timeoutDuration)); | 
| 2749 | 2741 | 
| 2750     var stopwatch = new Stopwatch()..start(); | 2742     var stopwatch = new Stopwatch()..start(); | 
| 2751     var writer = new StringBuffer(); | 2743     var writer = new StringBuffer(); | 
| 2752 | 2744 | 
| 2753     await device.waitForBootCompleted(); | 2745     await device.waitForBootCompleted(); | 
| 2754     await device.waitForDevice(); | 2746     await device.waitForDevice(); | 
| 2755 | 2747 | 
| 2756     AdbCommandResult result; | 2748     AdbCommandResult result; | 
| 2757     for (var i = 0; i < steps.length; i++) { | 2749     for (var i = 0; i < steps.length; i++) { | 
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3219     } | 3211     } | 
| 3220   } | 3212   } | 
| 3221 | 3213 | 
| 3222   void eventAllTestsDone() { | 3214   void eventAllTestsDone() { | 
| 3223     for (var listener in _eventListener) { | 3215     for (var listener in _eventListener) { | 
| 3224       listener.allDone(); | 3216       listener.allDone(); | 
| 3225     } | 3217     } | 
| 3226     _allDone(); | 3218     _allDone(); | 
| 3227   } | 3219   } | 
| 3228 } | 3220 } | 
| OLD | NEW | 
|---|