blob: 9ee480ad9ca218a49ae0101f19297d1444dab67e [file] [log] [blame]
#!/bin/sh
# Copyright (C) 2021 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
## script to install video CTS test files manually
adbOptions=" "
srcDir=$(dirname "$0")"/../CtsVideoTestCases-1.2"
tgtDir="/sdcard/test/"
usage="Usage: $0 [-h] [-s serial]"
if [ $# -gt 0 ]; then
if [ "$1" = "-h" ]; then
echo $usage
exit 1
elif [ "$1" = "-s" -a "$2" != "" ]; then
adbOptions=""$1" "$2""
else
echo "bad options"
echo $usage
exit 1
fi
fi
## install on target device
echo "adb $adbOptions push $srcDir $tgtDir"
adb $adbOptions shell mkdir -p $tgtDir
adb $adbOptions push $srcDir $tgtDir