OLD | NEW |
1 #!/usr/bin/env 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 |
12 set -x | 12 set -x |
13 cd src | 13 cd src |
14 ninja -C out/Release forwarder2 | 14 ninja -C out/Release forwarder2 |
15 export PATH=$PATH:third_party/android_tools/sdk/platform-tools/\ | 15 export PATH=$PATH:third_party/android_tools/sdk/platform-tools/\ |
16 :third_party/android_tools/sdk/tools/ | 16 :third_party/android_tools/sdk/tools/ |
17 | 17 |
18 ./build/android/adb_reverse_forwarder.py --all-devices \ | 18 ./build/android/adb_reverse_forwarder.py --all-devices \ |
19 8081 8081 8082 8082 8083 8083 8084 8084 & | 19 8081 8081 8082 8082 8083 8083 8084 8084 & |
20 FORWARDER_PID=$! | 20 FORWARDER_PID=$! |
21 sleep 15 | 21 sleep 15 |
22 ./dart/tools/test.py -m release -a arm --progress=line --report --time \ | 22 ./dart/tools/test.py -m release -a arm --progress=line --report --time \ |
23 --failure-summary --write-debug-log --local_ip=localhost \ | 23 --write-debug-log --local_ip=localhost \ |
24 --test_server_port=8083 --test_server_cross_origin_port=8084 \ | 24 --test_server_port=8083 --test_server_cross_origin_port=8084 \ |
25 --test_driver_port=8081 --test_driver_error_port=8082 \ | 25 --test_driver_port=8081 --test_driver_error_port=8082 \ |
26 -r ContentShellOnAndroid --drt=$1 | 26 -r ContentShellOnAndroid --drt=$1 |
27 EXIT_CODE=$? | 27 EXIT_CODE=$? |
28 kill -9 $FORWARDER_PID | 28 kill -9 $FORWARDER_PID |
29 exit $EXIT_CODE | 29 exit $EXIT_CODE |
OLD | NEW |