mirror of
https://github.com/dart-lang/sdk
synced 2024-09-21 11:27:47 +00:00
5d09bec212
BUG= R=ricow@google.com Review URL: https://codereview.chromium.org//464323002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39196 260f80e4-7a28-3924-810f-c04153c831b5
32 lines
1.2 KiB
Bash
Executable file
32 lines
1.2 KiB
Bash
Executable file
#!/bin/bash
|
|
# Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
|
|
# for details. All rights reserved. Use of this source code is governed by a
|
|
# BSD-style license that can be found in the LICENSE file.
|
|
|
|
# This script is meant to be run inside the src directory of a Dartium
|
|
# (or Chromium) checkout, with android_tools installed in third_party.
|
|
# It expects ContentShell to have been built for ARM android, using the
|
|
# ninja build system.
|
|
# It expects one or more android devices to be connected by USB to the machine.
|
|
set -v
|
|
set -x
|
|
cd src
|
|
ninja -C out/Release forwarder2
|
|
ninja -C out/Release pkg_packages
|
|
cp -R out/Release/packages out/ReleaseARM
|
|
export PATH=$PATH:third_party/android_tools/sdk/platform-tools/\
|
|
:third_party/android_tools/sdk/tools/
|
|
|
|
./build/android/adb_reverse_forwarder.py --all-devices \
|
|
8081 8081 8082 8082 8083 8083 8084 8084 &
|
|
FORWARDER_PID=$!
|
|
sleep 15
|
|
./dart/tools/test.py -m release -a arm --progress=line --report --time \
|
|
--failure-summary --write-debug-log --local_ip=localhost \
|
|
--test_server_port=8083 --test_server_cross_origin_port=8084 \
|
|
--test_driver_port=8081 --test_driver_error_port=8082 \
|
|
-r ContentShellOnAndroid --drt=$1
|
|
EXIT_CODE=$?
|
|
kill -9 $FORWARDER_PID
|
|
exit $EXIT_CODE
|