1// Copyright (C) 2020 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15// A list of names of test APEXes for GkiInstallTest to instantiate test cases. 16package { 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20genrule { 21 name: "gki_install_test_file_list", 22 srcs: [":gki_install_test_files"], 23 out: ["gki_install_test_file_list.txt"], 24 cmd: "for file in $(in); do basename $${file} >> $(out); done", 25} 26 27java_test_host { 28 name: "GkiInstallTest", 29 srcs: [ 30 "src/**/*.java", 31 ":gki_install_test_file_list", 32 ], 33 test_suites: [ 34 "device-tests", 35 ], 36 libs: [ 37 "compatibility-tradefed", 38 "tradefed", 39 ], 40 static_libs: [ 41 "cts-host-utils", 42 "hamcrest-library", 43 ], 44 data: [":gki_install_test_files"], 45 java_resources: [":gki_install_test_file_list"], 46} 47 48// Prebuilts 49 50prebuilt_gki_apex { 51 name: "com.android.gki.kmi_5_4_android12_0_test_prebuilt", 52 installable: false, 53 kmi_version: "5.4-android12-0", 54 src: "com.android.gki.kmi_5_4_android12_0_test_prebuilt.apex", 55} 56