Slava Shklyaev | feb87a9 | 2018-09-12 14:52:02 +0100 | [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_2TargetTestDefaults", |
| 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 | "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 Wang | ead950d | 2019-08-09 16:45:24 -0700 | [diff] [blame] | 41 | "libneuralnetworks_generated_test_harness", |
Slava Shklyaev | 73ee79d | 2019-05-14 14:15:14 +0100 | [diff] [blame] | 42 | "libneuralnetworks_utils", |
| 43 | "VtsHalNeuralNetworksV1_0_utils", |
| 44 | ], |
| 45 | header_libs: [ |
| 46 | "libneuralnetworks_headers", |
Slava Shklyaev | 73ee79d | 2019-05-14 14:15:14 +0100 | [diff] [blame] | 47 | ], |
| 48 | test_suites: ["general-tests"], |
| 49 | } |
| 50 | |
Slava Shklyaev | feb87a9 | 2018-09-12 14:52:02 +0100 | [diff] [blame] | 51 | cc_test { |
| 52 | name: "VtsHalNeuralnetworksV1_2TargetTest", |
Slava Shklyaev | 73ee79d | 2019-05-14 14:15:14 +0100 | [diff] [blame] | 53 | defaults: ["VtsHalNeuralNetworksV1_2TargetTestDefaults"], |
Slava Shklyaev | feb87a9 | 2018-09-12 14:52:02 +0100 | [diff] [blame] | 54 | srcs: [ |
| 55 | "BasicTests.cpp", |
Xusong Wang | 96e68dc | 2019-01-18 17:28:26 -0800 | [diff] [blame] | 56 | "CompilationCachingTests.cpp", |
Michael Butler | d6e38fd | 2019-04-26 17:46:08 -0700 | [diff] [blame] | 57 | "ValidateBurst.cpp", |
Slava Shklyaev | feb87a9 | 2018-09-12 14:52:02 +0100 | [diff] [blame] | 58 | ], |
Michael Butler | 01ba094 | 2019-08-23 16:17:01 -0700 | [diff] [blame] | 59 | whole_static_libs: [ |
Michael Butler | 3247f76 | 2019-08-26 22:25:40 -0700 | [diff] [blame] | 60 | "neuralnetworks_generated_V1_0_example", |
| 61 | "neuralnetworks_generated_V1_1_example", |
Michael Butler | 01ba094 | 2019-08-23 16:17:01 -0700 | [diff] [blame] | 62 | "neuralnetworks_generated_V1_2_example", |
| 63 | ], |
Michael Butler | 58caa83 | 2019-02-07 13:22:30 -0800 | [diff] [blame] | 64 | } |
| 65 | |
| 66 | cc_test { |
| 67 | name: "PresubmitHalNeuralnetworksV1_2TargetTest", |
Slava Shklyaev | 73ee79d | 2019-05-14 14:15:14 +0100 | [diff] [blame] | 68 | defaults: ["VtsHalNeuralNetworksV1_2TargetTestDefaults"], |
Michael Butler | 58caa83 | 2019-02-07 13:22:30 -0800 | [diff] [blame] | 69 | srcs: [ |
| 70 | "BasicTests.cpp", |
Michael Butler | 01ba094 | 2019-08-23 16:17:01 -0700 | [diff] [blame] | 71 | "CompilationCachingTests.cpp", |
Michael Butler | d6e38fd | 2019-04-26 17:46:08 -0700 | [diff] [blame] | 72 | "ValidateBurst.cpp", |
Michael Butler | 58caa83 | 2019-02-07 13:22:30 -0800 | [diff] [blame] | 73 | ], |
Michael Butler | 01ba094 | 2019-08-23 16:17:01 -0700 | [diff] [blame] | 74 | whole_static_libs: [ |
Michael Butler | 3247f76 | 2019-08-26 22:25:40 -0700 | [diff] [blame] | 75 | "neuralnetworks_generated_V1_0_example", |
| 76 | "neuralnetworks_generated_V1_1_example", |
Michael Butler | 01ba094 | 2019-08-23 16:17:01 -0700 | [diff] [blame] | 77 | "neuralnetworks_generated_V1_2_example", |
| 78 | ], |
Michael Butler | 58caa83 | 2019-02-07 13:22:30 -0800 | [diff] [blame] | 79 | cflags: [ |
Michael Butler | 58caa83 | 2019-02-07 13:22:30 -0800 | [diff] [blame] | 80 | "-DPRESUBMIT_NOT_VTS", |
| 81 | ], |
Slava Shklyaev | feb87a9 | 2018-09-12 14:52:02 +0100 | [diff] [blame] | 82 | } |