blob: 52d63286b77cd014219b997b966217956c08ec5c [file] [log] [blame]
Michael Butlerbb4ff652017-07-28 19:53:28 -07001//
2// Copyright (C) 2017 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
Miao Wanga2d04c82018-02-05 17:26:54 -080017cc_library_static {
18 name: "VtsHalNeuralnetworksTest_utils",
19 srcs: [
20 "Callbacks.cpp",
Miao Wanga2d04c82018-02-05 17:26:54 -080021 "GeneratedTestHarness.cpp",
22 ],
23 defaults: ["VtsHalTargetTestDefaults"],
24 export_include_dirs: ["."],
Miao Wang276b55b2019-01-22 13:57:14 -080025 shared_libs: [
Michael Butler814d8372019-01-15 11:02:55 -080026 "libfmq",
Miao Wang276b55b2019-01-22 13:57:14 -080027 "libnativewindow",
28 ],
Miao Wanga2d04c82018-02-05 17:26:54 -080029 static_libs: [
30 "android.hardware.neuralnetworks@1.0",
31 "android.hardware.neuralnetworks@1.1",
Slava Shklyaev871be942018-09-12 14:52:02 +010032 "android.hardware.neuralnetworks@1.2",
Miao Wanga2d04c82018-02-05 17:26:54 -080033 "android.hidl.allocator@1.0",
34 "android.hidl.memory@1.0",
Michael K. Sanders941d61a2018-10-19 14:39:09 +010035 "libgmock",
Miao Wanga2d04c82018-02-05 17:26:54 -080036 "libhidlmemory",
37 "libneuralnetworks_utils",
38 ],
39 header_libs: [
40 "libneuralnetworks_headers",
41 "libneuralnetworks_generated_test_harness_headers",
42 "libneuralnetworks_generated_tests",
43 ],
44}
45
Michael K. Sanders0fb38922018-11-07 15:53:28 +000046cc_defaults {
47 name: "VtsHalNeuralNetworksTargetTestDefaults",
48 defaults: ["VtsHalTargetTestDefaults"],
Michael Butler0e2ac1b2017-09-01 10:59:38 -070049 srcs: [
Michael Butlerf76acd02018-03-22 16:37:57 -070050 "ValidateModel.cpp",
51 "ValidateRequest.cpp",
Michael Butlerf76acd02018-03-22 16:37:57 -070052 "VtsHalNeuralnetworks.cpp",
Michael Butler0e2ac1b2017-09-01 10:59:38 -070053 ],
Miao Wang276b55b2019-01-22 13:57:14 -080054 shared_libs: [
Michael Butler814d8372019-01-15 11:02:55 -080055 "libfmq",
Miao Wang276b55b2019-01-22 13:57:14 -080056 "libnativewindow",
57 ],
Tri Vo0cd97822017-08-04 10:55:31 -070058 static_libs: [
Michael Butlerf76acd02018-03-22 16:37:57 -070059 "android.hardware.neuralnetworks@1.0",
Slava Shklyaev871be942018-09-12 14:52:02 +010060 "android.hardware.neuralnetworks@1.1",
61 "android.hardware.neuralnetworks@1.2",
Michael Butlerbb4ff652017-07-28 19:53:28 -070062 "android.hidl.allocator@1.0",
63 "android.hidl.memory@1.0",
Michael K. Sanders941d61a2018-10-19 14:39:09 +010064 "libgmock",
Tri Vo0cd97822017-08-04 10:55:31 -070065 "libhidlmemory",
Miao Wanga2d04c82018-02-05 17:26:54 -080066 "libneuralnetworks_utils",
67 "VtsHalNeuralnetworksTest_utils",
Michael Butlerbb4ff652017-07-28 19:53:28 -070068 ],
I-Jui (Ray) Sung2c4e1362017-09-06 02:15:54 -070069 header_libs: [
Miao Wanga2d04c82018-02-05 17:26:54 -080070 "libneuralnetworks_headers",
I-Jui (Ray) Sung2c4e1362017-09-06 02:15:54 -070071 "libneuralnetworks_generated_test_harness_headers",
72 "libneuralnetworks_generated_tests",
73 ],
Michael K. Sanders0fb38922018-11-07 15:53:28 +000074 // Bug: http://b/74200014 - Disable arm32 asan since it triggers internal
75 // error in ld.gold.
76 arch: {
77 arm: {
78 sanitize: {
79 never: true,
80 },
81 },
82 },
83}
84
85cc_test {
86 name: "VtsHalNeuralnetworksV1_0TargetTest",
87 defaults: ["VtsHalNeuralNetworksTargetTestDefaults"],
88 srcs: [
89 "BasicTests.cpp",
90 "GeneratedTests.cpp",
Michael K. Sanders0fb38922018-11-07 15:53:28 +000091 ],
Keun Soo YIMff84c372018-11-27 14:04:42 -080092 test_suites: ["general-tests"],
Michael Butlerbb4ff652017-07-28 19:53:28 -070093}