Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 1 | // |
| 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 Shklyaev | 73ee79d | 2019-05-14 14:15:14 +0100 | [diff] [blame] | 17 | cc_defaults { |
| 18 | name: "VtsHalNeuralNetworksV1_1TargetTestDefaults", |
| 19 | defaults: ["VtsHalTargetTestDefaults"], |
| 20 | srcs: [ |
Xusong Wang | ee80b02 | 2019-08-22 14:58:16 -0700 | [diff] [blame] | 21 | "TestAssertions.cpp", |
Slava Shklyaev | 73ee79d | 2019-05-14 14:15:14 +0100 | [diff] [blame] | 22 | "ValidateModel.cpp", |
| 23 | "ValidateRequest.cpp", |
| 24 | "VtsHalNeuralnetworks.cpp", |
| 25 | "GeneratedTestHarness.cpp", |
| 26 | ], |
| 27 | shared_libs: [ |
| 28 | "libfmq", |
| 29 | "libnativewindow", |
| 30 | ], |
| 31 | static_libs: [ |
| 32 | "android.hardware.neuralnetworks@1.0", |
| 33 | "android.hardware.neuralnetworks@1.1", |
| 34 | "android.hidl.allocator@1.0", |
| 35 | "android.hidl.memory@1.0", |
| 36 | "libgmock", |
| 37 | "libhidlmemory", |
Xusong Wang | 8161196 | 2019-08-09 16:41:16 -0700 | [diff] [blame] | 38 | "libneuralnetworks_generated_test_harness", |
Slava Shklyaev | 73ee79d | 2019-05-14 14:15:14 +0100 | [diff] [blame] | 39 | "libneuralnetworks_utils", |
| 40 | "VtsHalNeuralNetworksV1_0_utils", |
| 41 | ], |
| 42 | header_libs: [ |
| 43 | "libneuralnetworks_headers", |
Slava Shklyaev | 73ee79d | 2019-05-14 14:15:14 +0100 | [diff] [blame] | 44 | ], |
| 45 | test_suites: ["general-tests"], |
| 46 | } |
| 47 | |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 48 | cc_test { |
| 49 | name: "VtsHalNeuralnetworksV1_1TargetTest", |
Slava Shklyaev | 73ee79d | 2019-05-14 14:15:14 +0100 | [diff] [blame] | 50 | defaults: ["VtsHalNeuralNetworksV1_1TargetTestDefaults"], |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 51 | srcs: [ |
Michael Butler | 7ed6135 | 2018-03-22 16:37:57 -0700 | [diff] [blame] | 52 | "BasicTests.cpp", |
Michael Butler | 01ba094 | 2019-08-23 16:17:01 -0700 | [diff] [blame] | 53 | ], |
| 54 | whole_static_libs: [ |
Michael Butler | 3247f76 | 2019-08-26 22:25:40 -0700 | [diff] [blame] | 55 | "neuralnetworks_generated_V1_0_example", |
Michael Butler | 01ba094 | 2019-08-23 16:17:01 -0700 | [diff] [blame] | 56 | "neuralnetworks_generated_V1_1_example", |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 57 | ], |
Michael Butler | 58caa83 | 2019-02-07 13:22:30 -0800 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | cc_test { |
| 61 | name: "PresubmitHalNeuralnetworksV1_1TargetTest", |
Slava Shklyaev | 73ee79d | 2019-05-14 14:15:14 +0100 | [diff] [blame] | 62 | defaults: ["VtsHalNeuralNetworksV1_1TargetTestDefaults"], |
Michael Butler | 58caa83 | 2019-02-07 13:22:30 -0800 | [diff] [blame] | 63 | srcs: [ |
| 64 | "BasicTests.cpp", |
Michael Butler | 01ba094 | 2019-08-23 16:17:01 -0700 | [diff] [blame] | 65 | ], |
| 66 | whole_static_libs: [ |
Michael Butler | 3247f76 | 2019-08-26 22:25:40 -0700 | [diff] [blame] | 67 | "neuralnetworks_generated_V1_0_example", |
Michael Butler | 01ba094 | 2019-08-23 16:17:01 -0700 | [diff] [blame] | 68 | "neuralnetworks_generated_V1_1_example", |
Michael Butler | 58caa83 | 2019-02-07 13:22:30 -0800 | [diff] [blame] | 69 | ], |
| 70 | cflags: [ |
| 71 | "-DPRESUBMIT_NOT_VTS", |
| 72 | ], |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 73 | } |