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 | |
Michael K. Sanders | fc2b10e | 2018-11-07 15:53:28 +0000 | [diff] [blame] | 17 | // Tests for V1_0 models using the V1_2 HAL. |
| 18 | cc_test { |
| 19 | name: "VtsHalNeuralnetworksV1_2CompatV1_0TargetTest", |
| 20 | defaults: ["VtsHalNeuralNetworksTargetTestDefaults"], |
| 21 | srcs: [ |
| 22 | "GeneratedTestsV1_0.cpp", |
Xusong Wang | d22c523 | 2018-11-19 18:26:08 -0800 | [diff] [blame] | 23 | ], |
| 24 | cflags: [ |
| 25 | "-DNN_TEST_DYNAMIC_OUTPUT_SHAPE" |
| 26 | ], |
| 27 | test_suites: ["general-tests"], |
Michael K. Sanders | fc2b10e | 2018-11-07 15:53:28 +0000 | [diff] [blame] | 28 | } |
| 29 | |
| 30 | // Tests for V1_1 models using the V1_2 HAL. |
| 31 | cc_test { |
| 32 | name: "VtsHalNeuralnetworksV1_2CompatV1_1TargetTest", |
| 33 | defaults: ["VtsHalNeuralNetworksTargetTestDefaults"], |
| 34 | srcs: [ |
| 35 | "GeneratedTestsV1_1.cpp", |
Michael K. Sanders | fc2b10e | 2018-11-07 15:53:28 +0000 | [diff] [blame] | 36 | ], |
Xusong Wang | d22c523 | 2018-11-19 18:26:08 -0800 | [diff] [blame] | 37 | cflags: [ |
| 38 | "-DNN_TEST_DYNAMIC_OUTPUT_SHAPE" |
| 39 | ], |
| 40 | test_suites: ["general-tests"], |
Michael K. Sanders | fc2b10e | 2018-11-07 15:53:28 +0000 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | // Tests for V1_2 models. |
Slava Shklyaev | feb87a9 | 2018-09-12 14:52:02 +0100 | [diff] [blame] | 44 | cc_test { |
| 45 | name: "VtsHalNeuralnetworksV1_2TargetTest", |
Michael K. Sanders | fc2b10e | 2018-11-07 15:53:28 +0000 | [diff] [blame] | 46 | defaults: ["VtsHalNeuralNetworksTargetTestDefaults"], |
Slava Shklyaev | feb87a9 | 2018-09-12 14:52:02 +0100 | [diff] [blame] | 47 | srcs: [ |
| 48 | "BasicTests.cpp", |
| 49 | "GeneratedTests.cpp", |
Slava Shklyaev | feb87a9 | 2018-09-12 14:52:02 +0100 | [diff] [blame] | 50 | ], |
Xusong Wang | d22c523 | 2018-11-19 18:26:08 -0800 | [diff] [blame] | 51 | cflags: [ |
| 52 | "-DNN_TEST_DYNAMIC_OUTPUT_SHAPE" |
| 53 | ], |
Keun Soo YIM | 68ae05d | 2018-11-27 14:04:42 -0800 | [diff] [blame] | 54 | test_suites: ["general-tests"], |
Slava Shklyaev | feb87a9 | 2018-09-12 14:52:02 +0100 | [diff] [blame] | 55 | } |