Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(928)

Side by Side Diff: tools/bots/run_android_tests.sh

Issue 464323002: Test scripts: correctly copy packages directory in Android testing. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/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 ninja -C out/Release pkg_packages 15 ninja -C out/Release pkg_packages
16 cp -R out/Release/packages out/ReleaseARM/packages 16 cp -R out/Release/packages out/ReleaseARM
17 export PATH=$PATH:third_party/android_tools/sdk/platform-tools/\ 17 export PATH=$PATH:third_party/android_tools/sdk/platform-tools/\
18 :third_party/android_tools/sdk/tools/ 18 :third_party/android_tools/sdk/tools/
19 19
20 ./build/android/adb_reverse_forwarder.py --all-devices \ 20 ./build/android/adb_reverse_forwarder.py --all-devices \
21 8081 8081 8082 8082 8083 8083 8084 8084 & 21 8081 8081 8082 8082 8083 8083 8084 8084 &
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698