1// 2// Copyright (C) 2021 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17package { 18 // See: http://go/android-license-faq 19 // A large-scale-change added 'default_applicable_licenses' to import 20 // all of the 'license_kinds' from "hardware_interfaces_license" 21 // to get the below license kinds: 22 // SPDX-license-identifier-Apache-2.0 23 default_applicable_licenses: ["hardware_interfaces_license"], 24} 25 26cc_test { 27 name: "VtsHalNeuralnetworksTargetTest", 28 defaults: [ 29 "neuralnetworks_use_latest_utils_hal_aidl", 30 "neuralnetworks_vts_functional_defaults", 31 "use_libaidlvintf_gtest_helper_static", 32 ], 33 host_supported: true, 34 tidy_timeout_srcs: [ 35 "CompilationCachingTests.cpp", 36 "MemoryDomainTests.cpp", 37 ], 38 srcs: [ 39 "BasicTests.cpp", 40 "Callbacks.cpp", 41 "CompilationCachingTests.cpp", 42 "GeneratedTestHarness.cpp", 43 "MemoryDomainTests.cpp", 44 "QualityOfServiceTests.cpp", 45 "TestAssertions.cpp", 46 "TestMain.cpp", 47 "Utils.cpp", 48 "ValidateModel.cpp", 49 "ValidateRequest.cpp", 50 "VtsHalNeuralnetworks.cpp", 51 ], 52 shared_libs: [ 53 "libbinder_ndk", 54 ], 55 static_libs: [ 56 "libaidlcommonsupport", 57 "libneuralnetworks_common", 58 "libneuralnetworks_generated_test_harness", 59 ], 60 whole_static_libs: [ 61 "neuralnetworks_generated_AIDL_V3_example", 62 "neuralnetworks_generated_AIDL_V2_example", 63 "neuralnetworks_generated_V1_0_example", 64 "neuralnetworks_generated_V1_1_example", 65 "neuralnetworks_generated_V1_2_example", 66 "neuralnetworks_generated_V1_3_example", 67 ], 68 header_libs: [ 69 "libbase_headers", 70 "libneuralnetworks_headers", 71 ], 72 test_suites: [ 73 "general-tests", 74 ], 75 target: { 76 android: { 77 shared_libs: [ 78 "libnativewindow", 79 "libvndksupport", 80 ], 81 static_libs: [ 82 "libsync", 83 ], 84 test_suites: [ 85 "vts", 86 ], 87 test_config: "AndroidTestDevice.xml", 88 }, 89 host: { 90 shared_libs: [ 91 "libtextclassifier_hash", 92 ], 93 static_libs: [ 94 "neuralnetworks_canonical_sample_driver", 95 "neuralnetworks_utils_hal_adapter_aidl", 96 ], 97 exclude_static_libs: [ 98 "VtsHalHidlTestUtils", 99 "libaidlvintf_gtest_helper", 100 ], 101 test_config: "AndroidTestHost.xml", 102 }, 103 }, 104} 105