// // Copyright (C) 2016 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // package { default_applicable_licenses: ["Android-Apache-2.0"], } python_test_host { name: "fmq_test", main: "fmq_test.py", srcs: ["fmq_test.py"], test_config: "fmq_test.xml", target_required: [ "android.hardware.tests.msgq@1.0-service-test", "fmq_test_client", ], test_suites: ["general-tests", "vts"], test_options: { unit_test: false, }, } cc_test { name: "fmq_test_client", srcs: ["msgq_test_client.cpp"], cflags: [ "-Wall", "-Werror", ], sanitize: { misc_undefined: ["integer"], }, shared_libs: [ "libbase", "libcutils", "libfmq", "libhidlbase", "liblog", "libutils", "libbinder_ndk", ], // These are static libs only for testing purposes and portability. Shared // libs should be used on device. static_libs: [ "android.hardware.common-V2-ndk_platform", "android.hardware.common.fmq-V1-ndk_platform", "android.hardware.tests.msgq@1.0", "android.fmq.test-ndk_platform", ], whole_static_libs: [ "android.hardware.tests.msgq@1.0-impl", "android.fmq.test-impl" ], compile_multilib: "both", multilib: { lib32: { suffix: "32", }, lib64: { suffix: "64", }, }, test_suites: ["general-tests", "vts"], auto_gen_config: false, } cc_test { name: "fmq_unit_tests", srcs: ["fmq_unit_tests.cpp"], shared_libs: [ "libbase", "libcutils", "libfmq", "libhidlbase", "liblog", "libutils", ], static_libs: [ "android.hardware.common.fmq-V1-ndk_platform", ], cflags: [ "-Wall", "-Werror", ], sanitize: { misc_undefined: ["integer"], }, test_suites: ["general-tests"], auto_gen_config: true, }