blob: 510a0d5b3c183b8f146ab5760b09cc2c8a3c55df [file] [log] [blame]
Slava Shklyaev871be942018-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
Michael K. Sanders0fb38922018-11-07 15:53:28 +000017// Tests for V1_0 models using the V1_2 HAL.
18cc_test {
19 name: "VtsHalNeuralnetworksV1_2CompatV1_0TargetTest",
20 defaults: ["VtsHalNeuralNetworksTargetTestDefaults"],
21 srcs: [
22 "GeneratedTestsV1_0.cpp",
Keun Soo YIMff84c372018-11-27 14:04:42 -080023 ],
Xusong Wanga3165812018-11-19 18:26:08 -080024 cflags: [
25 "-DNN_TEST_DYNAMIC_OUTPUT_SHAPE"
26 ],
Keun Soo YIMff84c372018-11-27 14:04:42 -080027 test_suites: ["general-tests"],
Michael K. Sanders0fb38922018-11-07 15:53:28 +000028}
29
30// Tests for V1_1 models using the V1_2 HAL.
31cc_test {
32 name: "VtsHalNeuralnetworksV1_2CompatV1_1TargetTest",
33 defaults: ["VtsHalNeuralNetworksTargetTestDefaults"],
34 srcs: [
35 "GeneratedTestsV1_1.cpp",
Michael K. Sanders0fb38922018-11-07 15:53:28 +000036 ],
Xusong Wanga3165812018-11-19 18:26:08 -080037 cflags: [
38 "-DNN_TEST_DYNAMIC_OUTPUT_SHAPE"
39 ],
Keun Soo YIMff84c372018-11-27 14:04:42 -080040 test_suites: ["general-tests"],
Michael K. Sanders0fb38922018-11-07 15:53:28 +000041}
42
43// Tests for V1_2 models.
Slava Shklyaev871be942018-09-12 14:52:02 +010044cc_test {
45 name: "VtsHalNeuralnetworksV1_2TargetTest",
Michael K. Sanders0fb38922018-11-07 15:53:28 +000046 defaults: ["VtsHalNeuralNetworksTargetTestDefaults"],
Slava Shklyaev871be942018-09-12 14:52:02 +010047 srcs: [
48 "BasicTests.cpp",
Xusong Wang34058782019-01-18 17:28:26 -080049 "CompilationCachingTests.cpp",
Slava Shklyaev871be942018-09-12 14:52:02 +010050 "GeneratedTests.cpp",
Slava Shklyaev871be942018-09-12 14:52:02 +010051 ],
Xusong Wanga3165812018-11-19 18:26:08 -080052 cflags: [
53 "-DNN_TEST_DYNAMIC_OUTPUT_SHAPE"
54 ],
Keun Soo YIMff84c372018-11-27 14:04:42 -080055 test_suites: ["general-tests"],
Slava Shklyaev871be942018-09-12 14:52:02 +010056}