blob: 9c7ff27110f61a3513eae129faeb85ba837393c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/bash
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
PACKAGE_NAME="org.chromium.webview_shell.test"
DEVICE_WEBVIEW_TEST_PATH="/sdcard/android_webview/tools/WebViewShell/test/"
TESTRUNNER="../../../../build/android/test_runner.py"
$TESTRUNNER instrumentation \
--test-apk SystemWebViewShellLayoutTest \
-f 'WebViewLayoutTest*' \
--isolate-file-path android_webview/system_webview_shell_test_apk.isolate
if [ "$1" = "rebaseline" ]; then
adb shell am instrument -w -e mode rebaseline -e class \
$PACKAGE_NAME.WebViewLayoutTest \
$PACKAGE_NAME/$PACKAGE_NAME.WebViewLayoutTestRunner
adb pull $DEVICE_WEBVIEW_TEST_PATH ../test_rebaseline/
fi
exit 0
|