1#!/usr/bin/env bash 2 3# Copyright (C) 2020 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 17set -ex 18 19# TODO(b/156942077): when this test was converted to atest, we lost the ability 20# to see test results on stdout, and we can't print out the gtest results on 21# stderr because it breaks python test parsing. So, this file is added to help 22# run integration tests. 23 24$ANDROID_BUILD_TOP/build/soong/soong_ui.bash --make-mode \ 25 MODULES-IN-system-tools-aidl 26 27adb root 28adb wait-for-device 29adb sync data 30adb push \ 31 ${ANDROID_PRODUCT_OUT}/testcases/aidl_test_java_service/*/aidl_test_java_service.jar \ 32 /data/framework/aidl_test_java_service.jar 33adb push \ 34 ${ANDROID_PRODUCT_OUT}/testcases/aidl_test_java_client/*/aidl_test_java_client.jar \ 35 /data/framework/aidl_test_java_client.jar 36 37${ANDROID_BUILD_TOP}/system/tools/aidl/tests/aidl_integration_test.py 38