OLD | NEW |
1 #!/bin/bash | 1 #!/usr/bin/env bash |
2 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
5 | 5 |
6 # This script is meant to be run inside the src directory of a Dartium | 6 # This script is meant to be run inside the src directory of a Dartium |
7 # (or Chromium) checkout, with android_tools installed in third_party. | 7 # (or Chromium) checkout, with android_tools installed in third_party. |
8 # It expects ContentShell to have been built for ARM android, using the | 8 # It expects ContentShell to have been built for ARM android, using the |
9 # ninja build system. | 9 # ninja build system. |
10 # It expects one or more android devices to be connected by USB to the machine. | 10 # It expects one or more android devices to be connected by USB to the machine. |
11 set -v | 11 set -v |
(...skipping 10 matching lines...) Expand all Loading... |
22 FORWARDER_PID=$! | 22 FORWARDER_PID=$! |
23 sleep 15 | 23 sleep 15 |
24 ./dart/tools/test.py -m release -a arm --progress=line --report --time \ | 24 ./dart/tools/test.py -m release -a arm --progress=line --report --time \ |
25 --failure-summary --write-debug-log --local_ip=localhost \ | 25 --failure-summary --write-debug-log --local_ip=localhost \ |
26 --test_server_port=8083 --test_server_cross_origin_port=8084 \ | 26 --test_server_port=8083 --test_server_cross_origin_port=8084 \ |
27 --test_driver_port=8081 --test_driver_error_port=8082 \ | 27 --test_driver_port=8081 --test_driver_error_port=8082 \ |
28 -r ContentShellOnAndroid --drt=$1 | 28 -r ContentShellOnAndroid --drt=$1 |
29 EXIT_CODE=$? | 29 EXIT_CODE=$? |
30 kill -9 $FORWARDER_PID | 30 kill -9 $FORWARDER_PID |
31 exit $EXIT_CODE | 31 exit $EXIT_CODE |
OLD | NEW |