1// 2// Copyright (C) 2016 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 17package { 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21python_test_host { 22 name: "fmq_test", 23 main: "fmq_test.py", 24 srcs: ["fmq_test.py"], 25 test_config: "fmq_test.xml", 26 target_required: [ 27 "android.hardware.tests.msgq@1.0-service-test", 28 "fmq_test_client", 29 ], 30 test_suites: ["general-tests", "vts"], 31 test_options: { 32 unit_test: false, 33 }, 34} 35 36cc_test { 37 name: "fmq_test_client", 38 srcs: ["msgq_test_client.cpp"], 39 40 cflags: [ 41 "-Wall", 42 "-Werror", 43 ], 44 sanitize: { 45 misc_undefined: ["integer"], 46 }, 47 48 shared_libs: [ 49 "libbase", 50 "libcutils", 51 "libfmq", 52 "libhidlbase", 53 "liblog", 54 "libutils", 55 "libbinder_ndk", 56 ], 57 58 // These are static libs only for testing purposes and portability. Shared 59 // libs should be used on device. 60 static_libs: [ 61 "android.hardware.common-V2-ndk_platform", 62 "android.hardware.common.fmq-V1-ndk_platform", 63 "android.hardware.tests.msgq@1.0", 64 "android.fmq.test-ndk_platform", 65 ], 66 whole_static_libs: [ 67 "android.hardware.tests.msgq@1.0-impl", 68 "android.fmq.test-impl" 69 ], 70 71 compile_multilib: "both", 72 multilib: { 73 lib32: { 74 suffix: "32", 75 }, 76 lib64: { 77 suffix: "64", 78 }, 79 }, 80 test_suites: ["general-tests", "vts"], 81 auto_gen_config: false, 82} 83 84cc_test { 85 name: "fmq_unit_tests", 86 87 srcs: ["fmq_unit_tests.cpp"], 88 shared_libs: [ 89 "libbase", 90 "libcutils", 91 "libfmq", 92 "libhidlbase", 93 "liblog", 94 "libutils", 95 ], 96 static_libs: [ 97 "android.hardware.common.fmq-V1-ndk_platform", 98 ], 99 100 cflags: [ 101 "-Wall", 102 "-Werror", 103 ], 104 sanitize: { 105 misc_undefined: ["integer"], 106 }, 107 test_suites: ["general-tests"], 108 auto_gen_config: true, 109} 110