Steven Moreland | 6d26c07 | 2020-05-21 23:28:14 +0000 | [diff] [blame] | 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 | |
| 17 | set -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 | |
| 27 | adb root |
Steven Moreland | 3dffc0b | 2020-07-08 20:57:20 +0000 | [diff] [blame] | 28 | adb wait-for-device |
Steven Moreland | 6d26c07 | 2020-05-21 23:28:14 +0000 | [diff] [blame] | 29 | adb sync data |
| 30 | adb install -r \ |
| 31 | ${ANDROID_PRODUCT_OUT}/testcases/aidl_test_services/x86/aidl_test_services.apk |
| 32 | |
| 33 | ${ANDROID_BUILD_TOP}/system/tools/aidl/tests/aidl_integration_test.py |