1#!/bin/bash 2# 3# Copyright 2016 The Android Open Source Project 4# 5# Licensed under the Apache License, Version 2.0 (the "License"); 6# you may not use this file except in compliance with the License. 7# You may obtain a copy of the License at 8# 9# http://www.apache.org/licenses/LICENSE-2.0 10# 11# Unless required by applicable law or agreed to in writing, software 12# distributed under the License is distributed on an "AS IS" BASIS, 13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14# See the License for the specific language governing permissions and 15# limitations under the License. 16 17function vts_multidevice_create_image { 18 rm ${ANDROID_BUILD_TOP}/test/vts/testcases/hal/automotive/ -rf 19 rm ${ANDROID_BUILD_TOP}/test/vts/testcases/hal/camera/ -rf 20 rm ${ANDROID_BUILD_TOP}/test/vts/testcases/hal/gnss/ -rf 21 rm ${ANDROID_BUILD_TOP}/test/vts/testcases/hal/nfc/ -rf 22 rm ${ANDROID_BUILD_TOP}/test/vts/testcases/hal/sensors/ -rf 23 rm ${ANDROID_BUILD_TOP}/test/vts/testcases/hal/vibrator/ -rf 24 rm ${ANDROID_BUILD_TOP}/test/vts/testcases/hal/vr/ -rf 25 rm ${ANDROID_BUILD_TOP}/test/vts/testcases/hal/tv/ -rf 26 . ${ANDROID_BUILD_TOP}/build/make/envsetup.sh 27 cd ${ANDROID_BUILD_TOP}; lunch $1 28 cd ${ANDROID_BUILD_TOP}/test/vts; mma -j 32 && cd ${ANDROID_BUILD_TOP}; make vts adb -j 32 29 mkdir ${ANDROID_BUILD_TOP}/test/vts/testcases/hal -p 30 touch ${ANDROID_BUILD_TOP}/test/vts/testcases/hal/__init__.py 31 cp ${ANDROID_BUILD_TOP}/test/vts-testcase/hal/automotive ${ANDROID_BUILD_TOP}/test/vts/testcases/hal/ -rf 32 cp ${ANDROID_BUILD_TOP}/test/vts-testcase/hal/camera ${ANDROID_BUILD_TOP}/test/vts/testcases/hal/ -rf 33 cp ${ANDROID_BUILD_TOP}/test/vts-testcase/hal/gnss ${ANDROID_BUILD_TOP}/test/vts/testcases/hal/ -rf 34 cp ${ANDROID_BUILD_TOP}/test/vts-testcase/hal/nfc ${ANDROID_BUILD_TOP}/test/vts/testcases/hal/ -rf 35 cp ${ANDROID_BUILD_TOP}/test/vts-testcase/hal/sensors ${ANDROID_BUILD_TOP}/test/vts/testcases/hal/ -rf 36 cp ${ANDROID_BUILD_TOP}/test/vts-testcase/hal/vibrator ${ANDROID_BUILD_TOP}/test/vts/testcases/hal/ -rf 37 cp ${ANDROID_BUILD_TOP}/test/vts-testcase/hal/vr ${ANDROID_BUILD_TOP}/test/vts/testcases/hal/ -rf 38 cp ${ANDROID_BUILD_TOP}/test/vts-testcase/hal/tv ${ANDROID_BUILD_TOP}/test/vts/testcases/hal/ -rf 39} 40 41vts_multidevice_create_image $1 42 43