Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / android_webview / tools / WebViewShell / test / run_tests.sh
blob516a3f733e8d3ac73ae4c66e0625d0749edafb4d
1 #!/bin/bash
3 # Copyright 2015 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
7 PACKAGE_NAME="org.chromium.webview_shell"
8 DEVICE_WEBVIEW_TEST_PATH="/sdcard/android_webview/tools/WebViewShell/test/"
9 TESTRUNNER="../../../../build/android/test_runner.py"
11 $TESTRUNNER instrumentation \
12 --test-apk AndroidWebViewShell \
13 -f 'WebViewLayoutTest*' \
14 --isolate-file-path android_webview/android_webview_shell_test_apk.isolate
16 if [ "$1" = "rebaseline" ]; then
17 adb shell am instrument -w -e mode rebaseline -e class \
18 $PACKAGE_NAME.WebViewLayoutTest \
19 $PACKAGE_NAME/$PACKAGE_NAME.WebViewLayoutTestRunner
20 adb pull $DEVICE_WEBVIEW_TEST_PATH ../test_rebaseline/
23 exit 0