blob: 04b4a45d8f871c7e88599dbf0db15a5f206386a8 [file] [log] [blame]
Lev Proleevc185e882020-12-15 19:25:32 +00001//
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
Bob Badourb224b362021-02-12 20:13:01 -080017package {
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
Lev Proleevc185e882020-12-15 19:25:32 +000026cc_test {
27 name: "VtsHalNeuralnetworksTargetTest",
28 defaults: [
Michael Butlerabc86912021-10-28 01:54:26 +000029 "neuralnetworks_use_latest_utils_hal_aidl",
Lev Proleevc185e882020-12-15 19:25:32 +000030 "neuralnetworks_vts_functional_defaults",
31 "use_libaidlvintf_gtest_helper_static",
32 ],
Michael Butlerd0d9a7a2022-01-12 11:41:17 -080033 host_supported: true,
Chih-Hung Hsiehad1bf312022-02-17 21:56:13 -080034 tidy_timeout_srcs: [
35 "CompilationCachingTests.cpp",
36 "MemoryDomainTests.cpp",
37 ],
Lev Proleevc185e882020-12-15 19:25:32 +000038 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",
Lev Proleevc185e882020-12-15 19:25:32 +000054 ],
55 static_libs: [
Michael Butlerf03ebd92021-03-25 15:27:38 -070056 "libaidlcommonsupport",
Michael Butlerabc86912021-10-28 01:54:26 +000057 "libneuralnetworks_common",
Lev Proleevc185e882020-12-15 19:25:32 +000058 "libneuralnetworks_generated_test_harness",
Lev Proleevc185e882020-12-15 19:25:32 +000059 ],
60 whole_static_libs: [
David Gross8e9fbfc2021-12-02 15:39:33 -080061 "neuralnetworks_generated_AIDL_V3_example",
Ian Huaca46f972021-10-15 11:06:31 +010062 "neuralnetworks_generated_AIDL_V2_example",
Lev Proleevc185e882020-12-15 19:25:32 +000063 "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",
Lev Proleevc185e882020-12-15 19:25:32 +000074 ],
Michael Butlerd0d9a7a2022-01-12 11:41:17 -080075 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 },
Lev Proleevc185e882020-12-15 19:25:32 +0000104}