blob: 40ca809612227a55bc27f8962ffc3cc3933d6c07 [file] [log] [blame]
Slava Shklyaevfeb87a92018-09-12 14:52:02 +01001//
2// Copyright (C) 2018 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
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010017cc_defaults {
18 name: "VtsHalNeuralNetworksV1_2TargetTestDefaults",
19 defaults: ["VtsHalTargetTestDefaults"],
20 srcs: [
Xusong Wangee80b022019-08-22 14:58:16 -070021 "TestAssertions.cpp",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010022 "ValidateModel.cpp",
23 "ValidateRequest.cpp",
24 "VtsHalNeuralnetworks.cpp",
25 "Callbacks.cpp",
26 "GeneratedTestHarness.cpp",
27 ],
28 local_include_dirs: ["include"],
29 shared_libs: [
30 "libfmq",
31 "libnativewindow",
32 ],
33 static_libs: [
34 "android.hardware.neuralnetworks@1.0",
35 "android.hardware.neuralnetworks@1.1",
36 "android.hardware.neuralnetworks@1.2",
37 "android.hidl.allocator@1.0",
38 "android.hidl.memory@1.0",
39 "libgmock",
40 "libhidlmemory",
Xusong Wangead950d2019-08-09 16:45:24 -070041 "libneuralnetworks_generated_test_harness",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010042 "libneuralnetworks_utils",
43 "VtsHalNeuralNetworksV1_0_utils",
44 ],
45 header_libs: [
46 "libneuralnetworks_headers",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010047 ],
48 test_suites: ["general-tests"],
49}
50
Slava Shklyaevfeb87a92018-09-12 14:52:02 +010051cc_test {
52 name: "VtsHalNeuralnetworksV1_2TargetTest",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010053 defaults: ["VtsHalNeuralNetworksV1_2TargetTestDefaults"],
Slava Shklyaevfeb87a92018-09-12 14:52:02 +010054 srcs: [
55 "BasicTests.cpp",
Xusong Wang96e68dc2019-01-18 17:28:26 -080056 "CompilationCachingTests.cpp",
Michael Butlerd6e38fd2019-04-26 17:46:08 -070057 "ValidateBurst.cpp",
Slava Shklyaevfeb87a92018-09-12 14:52:02 +010058 ],
Michael Butler01ba0942019-08-23 16:17:01 -070059 whole_static_libs: [
Michael Butler3247f762019-08-26 22:25:40 -070060 "neuralnetworks_generated_V1_0_example",
61 "neuralnetworks_generated_V1_1_example",
Michael Butler01ba0942019-08-23 16:17:01 -070062 "neuralnetworks_generated_V1_2_example",
63 ],
Michael Butler58caa832019-02-07 13:22:30 -080064}
65
66cc_test {
67 name: "PresubmitHalNeuralnetworksV1_2TargetTest",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010068 defaults: ["VtsHalNeuralNetworksV1_2TargetTestDefaults"],
Michael Butler58caa832019-02-07 13:22:30 -080069 srcs: [
70 "BasicTests.cpp",
Michael Butler01ba0942019-08-23 16:17:01 -070071 "CompilationCachingTests.cpp",
Michael Butlerd6e38fd2019-04-26 17:46:08 -070072 "ValidateBurst.cpp",
Michael Butler58caa832019-02-07 13:22:30 -080073 ],
Michael Butler01ba0942019-08-23 16:17:01 -070074 whole_static_libs: [
Michael Butler3247f762019-08-26 22:25:40 -070075 "neuralnetworks_generated_V1_0_example",
76 "neuralnetworks_generated_V1_1_example",
Michael Butler01ba0942019-08-23 16:17:01 -070077 "neuralnetworks_generated_V1_2_example",
78 ],
Michael Butler58caa832019-02-07 13:22:30 -080079 cflags: [
Michael Butler58caa832019-02-07 13:22:30 -080080 "-DPRESUBMIT_NOT_VTS",
81 ],
Slava Shklyaevfeb87a92018-09-12 14:52:02 +010082}