Home | History | Annotate | Download | only in functional
      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 
     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",
     23         "ValidateBurst.cpp",
     24     ],
     25     cflags: [
     26         "-DNN_TEST_DYNAMIC_OUTPUT_SHAPE"
     27     ],
     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",
     36         "ValidateBurst.cpp",
     37     ],
     38     cflags: [
     39         "-DNN_TEST_DYNAMIC_OUTPUT_SHAPE"
     40     ],
     41 }
     42 
     43 // Tests for V1_2 models.
     44 cc_test {
     45     name: "VtsHalNeuralnetworksV1_2TargetTest",
     46     defaults: ["VtsHalNeuralNetworksTargetTestDefaults"],
     47     srcs: [
     48         "BasicTests.cpp",
     49         "CompilationCachingTests.cpp",
     50         "GeneratedTests.cpp",
     51         "ValidateBurst.cpp",
     52     ],
     53     cflags: [
     54         "-DNN_TEST_DYNAMIC_OUTPUT_SHAPE"
     55     ],
     56 }
     57 
     58 cc_test {
     59     name: "PresubmitHalNeuralnetworksV1_2TargetTest",
     60     defaults: ["VtsHalNeuralNetworksTargetTestDefaults"],
     61     srcs: [
     62         "BasicTests.cpp",
     63         "GeneratedTests.cpp",
     64         "ValidateBurst.cpp",
     65     ],
     66     cflags: [
     67         "-DNN_TEST_DYNAMIC_OUTPUT_SHAPE",
     68         "-DPRESUBMIT_NOT_VTS",
     69     ],
     70 }
     71