1// Copyright (C) 2017 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 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19cc_defaults { 20 name: "vts_treble_vintf_test_defaults", 21 cflags: [ 22 "-Wall", 23 "-Werror", 24 ], 25 shared_libs: [ 26 "libbase", 27 "libbinder", 28 "libcutils", 29 "libhidlbase", 30 "liblog", 31 "libutils", 32 "libz", 33 ], 34 static_libs: [ 35 "apex_aidl_interface-cpp", 36 "libaidlmetadata", 37 "libgmock", 38 "libhidl-gen-hash", 39 "libhidl-gen-utils", 40 "libhidlmetadata", 41 "libprocpartition", 42 "libselinux", 43 "libtinyxml2", 44 "libvintf", 45 "libvts_vintf_test_common", 46 ], 47 srcs: [ 48 "VtsTrebleVintfTestBase.cpp", 49 "utils.cpp", 50 "main.cpp", 51 ], 52 data: [ 53 ":android.hardware", 54 ":android.frameworks", 55 ":android.system", 56 ":android.hidl", 57 ], 58} 59 60// Test vendor image that has the highest target FCM version. This test binary 61// has no system XML dependencies. 62cc_test { 63 name: "vts_treble_vintf_vendor_test", 64 //Use test_config for vts suite. 65 test_config: "vts_treble_vintf_vendor_test.xml", 66 test_suites: [ 67 "vts", 68 "device-tests", 69 ], 70 defaults: ["vts_treble_vintf_test_defaults"], 71 srcs: [ 72 "DeviceManifestTest.cpp", 73 "DeviceMatrixTest.cpp", 74 "SingleManifestTest.cpp", 75 ], 76} 77 78// Check for HIDL services on device launching after Android 14. 79cc_test { 80 name: "vts_treble_no_hidl", 81 82 test_suites: [ 83 "vts", 84 "general-tests", 85 ], 86 defaults: ["vts_treble_vintf_test_defaults"], 87 srcs: [ 88 "VtsNoHidl.cpp", 89 ], 90} 91 92// Test a (potentially) compatible vendor image with framework dependency; 93// test the current framework. 94cc_test { 95 name: "vts_treble_vintf_framework_test", 96 //Use test_config for vts suite. 97 test_config: "vts_treble_vintf_framework_test.xml", 98 test_suites: [ 99 "vts", 100 "device-tests", 101 ], 102 defaults: ["vts_treble_vintf_test_defaults"], 103 srcs: [ 104 "SingleManifestTest.cpp", 105 "SystemVendorTest.cpp", 106 ], 107} 108 109// Tests everything. 110// Should not be used by VTS framework, but could be used for test development. 111// VTS framework should choose among the other test binaries defined above. 112cc_test { 113 name: "vts_treble_vintf_test_all", 114 defaults: ["vts_treble_vintf_test_defaults"], 115 srcs: [ 116 "DeviceManifestTest.cpp", 117 "DeviceMatrixTest.cpp", 118 "SingleManifestTest.cpp", 119 "SystemVendorTest.cpp", 120 ], 121} 122