blob: 510a0d5b3c183b8f146ab5760b09cc2c8a3c55df [file] [log] [blame]
Slava Shklyaevfeb87a92018-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. Sandersfc2b10e2018-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",
Xusong Wangd22c5232018-11-19 18:26:08 -080023 ],
24 cflags: [
25 "-DNN_TEST_DYNAMIC_OUTPUT_SHAPE"
26 ],
27 test_suites: ["general-tests"],
Michael K. Sandersfc2b10e2018-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. Sandersfc2b10e2018-11-07 15:53:28 +000036 ],
Xusong Wangd22c5232018-11-19 18:26:08 -080037 cflags: [
38 "-DNN_TEST_DYNAMIC_OUTPUT_SHAPE"
39 ],
40 test_suites: ["general-tests"],
Michael K. Sandersfc2b10e2018-11-07 15:53:28 +000041}
42
43// Tests for V1_2 models.
Slava Shklyaevfeb87a92018-09-12 14:52:02 +010044cc_test {
45 name: "VtsHalNeuralnetworksV1_2TargetTest",
Michael K. Sandersfc2b10e2018-11-07 15:53:28 +000046 defaults: ["VtsHalNeuralNetworksTargetTestDefaults"],
Slava Shklyaevfeb87a92018-09-12 14:52:02 +010047 srcs: [
48 "BasicTests.cpp",
Xusong Wang96e68dc2019-01-18 17:28:26 -080049 "CompilationCachingTests.cpp",
Slava Shklyaevfeb87a92018-09-12 14:52:02 +010050 "GeneratedTests.cpp",
Slava Shklyaevfeb87a92018-09-12 14:52:02 +010051 ],
Xusong Wangd22c5232018-11-19 18:26:08 -080052 cflags: [
53 "-DNN_TEST_DYNAMIC_OUTPUT_SHAPE"
54 ],
Keun Soo YIM68ae05d2018-11-27 14:04:42 -080055 test_suites: ["general-tests"],
Slava Shklyaevfeb87a92018-09-12 14:52:02 +010056}